Skip to content

AngularFireAuth's currentUser in ngOnInit #2733

Answered by mattbodman
zgosalvez asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I can tell, you can add async in front of your ngOnInit() function. Otherwise, you could do auth.currentUser.then(...)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zgosalvez
Comment options

Answer selected by zgosalvez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants