AngularFireAuth's currentUser in ngOnInit #2733
-
On an older version, I could easily get the |
Beta Was this translation helpful? Give feedback.
Answered by
mattbodman
Feb 9, 2021
Replies: 1 comment 1 reply
-
As far as I can tell, you can add |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zgosalvez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell, you can add
async
in front of yourngOnInit()
function. Otherwise, you could doauth.currentUser.then(...)