fix a token access issue
This commit is contained in:
@@ -11,7 +11,7 @@ export class Auth {
|
|||||||
return axios
|
return axios
|
||||||
.get<User>(`${Configuration.resourceServer}/auth/user`, {
|
.get<User>(`${Configuration.resourceServer}/auth/user`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${sessionStorage.getItem('token')}`,
|
Authorization: `Bearer ${token}`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((response) => response.data)
|
.then((response) => response.data)
|
||||||
|
|||||||
Reference in New Issue
Block a user