diff --git a/projects/ngx-auth/core/auth.interceptor.ts b/projects/ngx-auth/core/auth.interceptor.ts index 7d1eb1b..5082a22 100644 --- a/projects/ngx-auth/core/auth.interceptor.ts +++ b/projects/ngx-auth/core/auth.interceptor.ts @@ -29,7 +29,7 @@ export class AuthInterceptor implements HttpInterceptor { if (this.loginOn401 && (error.status === 401)) { void this.authService.login(); } - return throwError(error); + return throwError(() => error); }) ); }