Finished testing api key
This commit is contained in:
parent
d2a550fd31
commit
78b858c03b
1 changed files with 0 additions and 1 deletions
|
|
@ -15,7 +15,6 @@ const showToast = (message, duration = 3000) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchWithAuth = async (url, options = {}) => {
|
const fetchWithAuth = async (url, options = {}) => {
|
||||||
console.log(`Calling server with api key : ${state.apiKey}`)
|
|
||||||
const headers = {
|
const headers = {
|
||||||
...(options.headers || {}),
|
...(options.headers || {}),
|
||||||
...(state.apiKey ? { 'X-API-Key': state.apiKey } : {}) // Use X-API-Key instead of Bearer
|
...(state.apiKey ? { 'X-API-Key': state.apiKey } : {}) // Use X-API-Key instead of Bearer
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue