diff --git a/src/app/core/interceptors/dev-auth-interceptor.service.ts b/src/app/core/interceptors/dev-auth-interceptor.service.ts index ea64165a579e14fabd172cd9a070fbabcd81f33e..1342ec0b25e4766fe8882688842ae9dc32781df8 100644 --- a/src/app/core/interceptors/dev-auth-interceptor.service.ts +++ b/src/app/core/interceptors/dev-auth-interceptor.service.ts @@ -1,5 +1,9 @@ import { inject } from '@angular/core'; -import { HttpHandlerFn, HttpInterceptorFn, HttpRequest } from '@angular/common/http'; +import { + HttpHandlerFn, + HttpInterceptorFn, + HttpRequest, +} from '@angular/common/http'; import { switchMap } from 'rxjs/operators'; import { environment } from 'src/environments/environment'; import { JwtTokenService } from '../services/auth/jwt-token.service'; @@ -10,10 +14,6 @@ export const devAuthInterceptor: HttpInterceptorFn = ( ) => { const jwtTokenService = inject(JwtTokenService); - if (environment.production) { - return next(request); - } - return jwtTokenService.getToken().pipe( switchMap((token) => { if (token) {