@infrab4a/connect-angular 4.3.7-beta.0 → 4.3.7-beta.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.
@@ -940,13 +940,13 @@ class AuthService {
940
940
  })));
941
941
  }
942
942
  getUser() {
943
- return this.getFireUser().pipe(tap((user) => console.log('connect - getUser', user.uid)), map((user) => user?.uid), mergeMap((id) => (id ? from(this.userRepository.get({ id })).pipe(catchError(() => of(null))) : of(null))));
943
+ return this.getFireUser().pipe(tap((user) => console.log('connect - getUser', user?.uid)), map((user) => user?.uid), mergeMap((id) => (id ? from(this.userRepository.get({ id })).pipe(catchError(() => of(null))) : of(null))), tap((user) => console.log('connect - getUser after', user)));
944
944
  }
945
945
  getTokenId() {
946
946
  return from(getIdToken(this.angularFireAuth.currentUser));
947
947
  }
948
948
  getFireUser() {
949
- return authState(this.angularFireAuth).pipe(tap((user) => console.log('connect - getFireUser', user.uid)), catchError((error) => {
949
+ return authState(this.angularFireAuth).pipe(tap((user) => console.log('connect - getFireUser', user?.uid)), catchError((error) => {
950
950
  console.log(error);
951
951
  return of(null);
952
952
  }));