diff --git a/projects/lib/src/interceptors/default-oauth.interceptor.ts b/projects/lib/src/interceptors/default-oauth.interceptor.ts index e30bb0a2..43a8f534 100644 --- a/projects/lib/src/interceptors/default-oauth.interceptor.ts +++ b/projects/lib/src/interceptors/default-oauth.interceptor.ts @@ -44,13 +44,7 @@ export class DefaultOAuthInterceptor implements HttpInterceptor { const url = req.url.toLowerCase(); - if (!this.moduleConfig) { - return next.handle(req); - } - if (!this.moduleConfig.resourceServer) { - return next.handle(req); - } - if (this.moduleConfig.resourceServer.allowedUrls && !this.checkUrl(url)) { + if (!this.moduleConfig || !this.moduleConfig.resourceServer || !this.checkUrl(url)) { return next.handle(req); }