Skip to content

Commit

Permalink
fix: revert remove skip-interceptors from authinterceptor if it exists1
Browse files Browse the repository at this point in the history
  • Loading branch information
uzenith360 committed Jan 17, 2025
1 parent c2c8b45 commit b619cfa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions projects/ngx-jwt-auth/src/lib/auth-interceptor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ export class AuthInterceptorService implements HttpInterceptor {
this.config.resetPasswordUrl,
...(this.config.interceptorSkipUrls || [])
].includes(req.url)
|| req.headers.has("skip-interceptors")
|| req.headers.get("skip-interceptors")
) {
return next.handle(
req.headers.has("skip-interceptors")
? req.clone({ headers: req.headers.delete("skip-interceptors") })
: req
);
return next.handle(req);
}

return from(this.authManagerService.getAuthorization())
Expand Down

0 comments on commit b619cfa

Please sign in to comment.