Explorar o código

fix a token access issue

Sven Czarnian %!s(int64=2) %!d(string=hai) anos
pai
achega
c23fcb3ea5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/services/auth.ts

+ 1 - 1
src/services/auth.ts

@@ -11,7 +11,7 @@ export class Auth {
     return axios
       .get<User>(`${Configuration.resourceServer}/auth/user`, {
         headers: {
-          Authorization: `Bearer ${sessionStorage.getItem('token')}`,
+          Authorization: `Bearer ${token}`,
         },
       })
       .then((response) => response.data)