Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving currentUser and uid #41

Open
ichigo92 opened this issue Apr 11, 2022 · 0 comments
Open

Retrieving currentUser and uid #41

ichigo92 opened this issue Apr 11, 2022 · 0 comments

Comments

@ichigo92
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant