From c23fcb3ea56cc5f6661d75044eb5e7b168aa8da3 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Fri, 4 Nov 2022 22:57:59 +0100 Subject: [PATCH] fix a token access issue --- src/services/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/auth.ts b/src/services/auth.ts index e570964..7d02c5e 100644 --- a/src/services/auth.ts +++ b/src/services/auth.ts @@ -11,7 +11,7 @@ export class Auth { return axios .get(`${Configuration.resourceServer}/auth/user`, { headers: { - Authorization: `Bearer ${sessionStorage.getItem('token')}`, + Authorization: `Bearer ${token}`, }, }) .then((response) => response.data)