|
@@ -47,7 +47,7 @@ export function IntegrationsContent() {
|
|
|
const session = JSON.parse(sessionData);
|
|
const session = JSON.parse(sessionData);
|
|
|
const response = await fetch(`${API_URL}/api/stores`, {
|
|
const response = await fetch(`${API_URL}/api/stores`, {
|
|
|
headers: {
|
|
headers: {
|
|
|
- 'Authorization': `Bearer ${session.access_token}`,
|
|
|
|
|
|
|
+ 'Authorization': `Bearer ${session.session.access_token}`,
|
|
|
'Content-Type': 'application/json'
|
|
'Content-Type': 'application/json'
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -182,7 +182,7 @@ export function IntegrationsContent() {
|
|
|
const response = await fetch(`${API_URL}/api/stores/${storeId}`, {
|
|
const response = await fetch(`${API_URL}/api/stores/${storeId}`, {
|
|
|
method: 'DELETE',
|
|
method: 'DELETE',
|
|
|
headers: {
|
|
headers: {
|
|
|
- 'Authorization': `Bearer ${session.access_token}`,
|
|
|
|
|
|
|
+ 'Authorization': `Bearer ${session.session.access_token}`,
|
|
|
'Content-Type': 'application/json'
|
|
'Content-Type': 'application/json'
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|