Sven Czarnian пре 2 година
родитељ
комит
c23fcb3ea5
1 измењених фајлова са 1 додато и 1 уклоњено
  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)