From 756569edf2cbb039e718e5012e67996ea58901b5 Mon Sep 17 00:00:00 2001 From: Badisi Date: Sun, 26 Feb 2023 15:36:30 +0100 Subject: [PATCH] fix(rxjs): throwing error directly is deprecated --- projects/ngx-auth/core/auth.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }) ); }