@indigina/kendo 2.0.12 → 2.0.13

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.
@@ -15,7 +15,7 @@ import * as i2$1 from '@progress/kendo-angular-inputs';
15
15
  import { InputsModule } from '@progress/kendo-angular-inputs';
16
16
  import * as i3$1 from '@progress/kendo-angular-label';
17
17
  import { LabelModule } from '@progress/kendo-angular-label';
18
- import { BehaviorSubject, Subject, of, throwError, from, tap as tap$1, map as map$1, takeUntil, switchMap } from 'rxjs';
18
+ import { BehaviorSubject, Subject, of, throwError, map as map$1, from, tap as tap$1, takeUntil, switchMap } from 'rxjs';
19
19
  import { map, mergeMap, debounceTime, catchError, tap, filter, take, finalize } from 'rxjs/operators';
20
20
  import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
21
21
  import * as i1$1 from 'ngx-toastr';
@@ -1792,18 +1792,15 @@ class AzureB2CProvider extends AuthProvider {
1792
1792
  const request = {
1793
1793
  scopes: ['openid', 'offline_access', 'profile'],
1794
1794
  };
1795
- return from(this.authService.instance
1796
- .acquireTokenSilent(request)
1797
- .then((authenticationResult) => {
1795
+ return this.authService.acquireTokenSilent(request).pipe(map$1((authenticationResult) => {
1798
1796
  const token = authenticationResult.idToken;
1799
1797
  this.settingsService.setToken(token);
1800
1798
  return token;
1801
- })
1802
- .catch(async (error) => {
1799
+ }), catchError((error) => {
1803
1800
  if (error instanceof InteractionRequiredAuthError) {
1804
- await this.authService.instance.acquireTokenRedirect(request);
1805
- return this.settingsService.getToken();
1801
+ this.authService.loginRedirect(request).subscribe();
1806
1802
  }
1803
+ return throwError(() => error);
1807
1804
  }));
1808
1805
  }
1809
1806
  }