ngx-scandoc 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4056,6 +4056,16 @@ class HttpErrorInterceptor {
4056
4056
  return next.handle(req);
4057
4057
  }
4058
4058
  const authProvider = this.injector.get(AuthProvider);
4059
+ if (authProvider.config.validDomains) {
4060
+ const valid = authProvider.config.validDomains
4061
+ .map((domain) => {
4062
+ return req.url.indexOf(domain) >= 0;
4063
+ })
4064
+ .filter((m) => m).length > 0;
4065
+ if (!valid) {
4066
+ return next.handle(req);
4067
+ }
4068
+ }
4059
4069
  this.inflightAuthRequest = authProvider.accesToken;
4060
4070
  return this.inflightAuthRequest.pipe(share(), switchMap((token) => {
4061
4071
  // unset request inflight