angular-pro-app-seed icon indicating copy to clipboard operation
angular-pro-app-seed copied to clipboard

Retrieving currentUser and uid

Open ichigo92 opened this issue 3 years ago • 0 comments

Hi @toddmotto,

Thanks for a wonderful course, appreciate your effort. I am trying to follow along in the course and I am at Step 9: MealsService, Reactive Store and Firebase Observables using Angular v11, Firebase v8, Angular Fire v6.1.5 unfortunately this.af.auth.currentUser is not available. The way I can get the current user is via this.af.user but it returns an Observable<firebase.User>.

What do you suggest, should I create a property user in the AuthService and update it using do/tap on authState change or do you have something else in mind?

ichigo92 avatar Apr 11 '22 00:04 ichigo92