fix a token access issue

This commit is contained in:
Sven Czarnian
2022-11-04 22:57:59 +01:00
parent 13d943b5fb
commit c23fcb3ea5

View File

@@ -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)