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:
Mathis H (Avnyr) 2024-06-20 14:56:35 +02:00
parent a2f2996ef9
commit 4e0de3be06
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -88,7 +88,8 @@ export function AuthForms() {
owned_cryptos: [],
},
});
setSub(ReqRes.data.access_token?.toString());
setSub(ReqRes.data.access_token);
}
console.debug(ReqRes.data.message || "Not additional message from request");
return {