From 0cee4c19b0d288fe473f04f734def852a6efe7d8 Mon Sep 17 00:00:00 2001 From: kaw67872 <kawtar.laariche@iais.fraunhofer.de> Date: Thu, 3 Apr 2025 11:37:53 +0200 Subject: [PATCH] remove production condition --- .../core/interceptors/dev-auth-interceptor.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/core/interceptors/dev-auth-interceptor.service.ts b/src/app/core/interceptors/dev-auth-interceptor.service.ts index ea64165..1342ec0 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) { -- GitLab