Skip to content

Commit

Permalink
fix(rxjs): throwing error directly is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Feb 26, 2023
1 parent c8cb7bf commit 756569e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-auth/core/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
);
}
Expand Down

0 comments on commit 756569e

Please sign in to comment.