Fix circular dep

This commit is contained in:
akastijn 2026-07-19 15:17:30 +02:00
parent 6996ecf48c
commit 73132fae13

View File

@ -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({