@open-rlb/ng-app 3.1.46 → 3.1.47

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.
@@ -1,7 +1,7 @@
1
1
  import * as i1$2 from '@angular/common/http';
2
2
  import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, Injectable, Inject, Optional, inject, EventEmitter, importProvidersFrom, makeStateKey, isDevMode, makeEnvironmentProviders, Pipe, Input, Component, input, output, viewChild, PLATFORM_ID, TemplateRef, ViewContainerRef, effect, Directive, NgModule, model, provideAppInitializer } from '@angular/core';
4
+ import { InjectionToken, Injectable, Inject, Optional, inject, EventEmitter, importProvidersFrom, makeStateKey, makeEnvironmentProviders, Pipe, Input, Component, input, output, viewChild, PLATFORM_ID, TemplateRef, ViewContainerRef, effect, Directive, NgModule, model, isDevMode, provideAppInitializer } from '@angular/core';
5
5
  import * as i2 from '@angular/router';
6
6
  import { NavigationEnd, Router, RoutesRecognized, RouterModule, provideRouter } from '@angular/router';
7
7
  import * as i1$4 from '@angular/service-worker';
@@ -1538,16 +1538,17 @@ class AuthenticationService {
1538
1538
  }
1539
1539
  checkAuthMultiple(url) {
1540
1540
  return this.oidc.checkAuthMultiple(url).pipe(switchMap((responses) => {
1541
- let authenticatedConfig = responses.find(o => o.isAuthenticated);
1542
- if (isDevMode() && responses[0]) {
1543
- authenticatedConfig = responses[0];
1544
- }
1541
+ const authenticatedConfig = responses.find(o => o.isAuthenticated);
1545
1542
  if (authenticatedConfig && authenticatedConfig.configId) {
1546
1543
  this.store.dispatch(AuthActions.setCurrentProvider({
1547
1544
  currentProvider: authenticatedConfig.configId,
1548
1545
  }));
1549
1546
  }
1550
1547
  else {
1548
+ // wrap login with this to bypass login flow
1549
+ // if (!isDevMode()) {
1550
+ //
1551
+ // }
1551
1552
  this.login();
1552
1553
  return EMPTY;
1553
1554
  }