Get the logged in user
At any time, you can use the currentUser
property to get the signed in user.
You can also subscribe to changes to the auth state using the onAuthStateChange
method.
The onAuthStateChange
method returns a function that can be called to unsubscribe from auth state changes.
Last updated