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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user