diff --git a/client/src/app/auth.interceptor.ts b/client/src/app/auth.interceptor.ts index 3dc3ab8..3718068 100644 --- a/client/src/app/auth.interceptor.ts +++ b/client/src/app/auth.interceptor.ts @@ -16,7 +16,7 @@ export class AuthInterceptor implements HttpInterceptor { } else if (error && (error.status === 401 || error.status === 403)) { this.router.navigate(['/login']); } - return throwError(error); + return throwError(() => error); }), ); }