@dereekb/dbx-firebase 8.0.2 → 8.1.2

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.
@@ -210,8 +210,11 @@ class DbxFirebaseAuthService {
210
210
  this.onLogIn$ = loggedInObsFromIsLoggedIn(this.isLoggedIn$);
211
211
  this.onLogOut$ = loggedOutObsFromIsLoggedIn(this.isLoggedIn$);
212
212
  this.userIdentifier$ = this.currentAuthUser$.pipe(map((x) => authUserIdentifier(x?.uid)));
213
+ this.uid$ = this.userIdentifier$;
213
214
  this.idTokenResult$ = this.authUser$.pipe(switchMap((x) => x.getIdTokenResult()));
214
215
  this.claims$ = this.idTokenResult$.pipe(map((x) => x.claims));
216
+ this.currentAuthContextInfo$ = this.currentAuthUser$.pipe(switchMap((x) => this.loadAuthContextInfoForUser(x)), shareReplay(1));
217
+ this.authContextInfo$ = this.currentAuthContextInfo$.pipe(filterMaybe());
215
218
  delegate = delegate ?? DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE;
216
219
  this.authUserState$ = delegate.authUserStateObs(this).pipe(distinctUntilChanged(), shareReplay(1));
217
220
  this.authRoles$ = delegate.authRolesObs(this);