Finished testing api key

This commit is contained in:
Saifeddine ALOUI 2025-01-31 16:19:46 +01:00 committed by GitHub
parent d2a550fd31
commit 78b858c03b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,6 @@ const showToast = (message, duration = 3000) => {
};
const fetchWithAuth = async (url, options = {}) => {
console.log(`Calling server with api key : ${state.apiKey}`)
const headers = {
...(options.headers || {}),
...(state.apiKey ? { 'X-API-Key': state.apiKey } : {}) // Use X-API-Key instead of Bearer