diff --git a/frontend/src/app/services/AuthInterceptor.ts b/frontend/src/app/services/AuthInterceptor.ts index 135d659..24fdfea 100644 --- a/frontend/src/app/services/AuthInterceptor.ts +++ b/frontend/src/app/services/AuthInterceptor.ts @@ -1,10 +1,7 @@ import {HttpInterceptorFn} from '@angular/common/http'; -import {inject} from '@angular/core'; -import {AuthService} from '@services/auth.service'; export const authInterceptor: HttpInterceptorFn = (req, next) => { - const authService = inject(AuthService); - const jwt = authService.getJwt(); + const jwt = localStorage.getItem('jwt') if (jwt) { const authReq = req.clone({