feat(apiRequest): use JSON.parse for accessToken in Authorization header
The Authorization header in the apiRequest now utilizes JSON.parse for the accessToken. This change ensures proper parsing and retrieval of the item from the local storage when the window object is defined.
This commit is contained in:
parent
a2f2996ef9
commit
4e0de3be06
@ -88,7 +88,8 @@ export function AuthForms() {
|
|||||||
owned_cryptos: [],
|
owned_cryptos: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
setSub(ReqRes.data.access_token?.toString());
|
|
||||||
|
setSub(ReqRes.data.access_token);
|
||||||
}
|
}
|
||||||
console.debug(ReqRes.data.message || "Not additional message from request");
|
console.debug(ReqRes.data.message || "Not additional message from request");
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user