Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Set up a listener for the when the AuthState changes (Login/Logout) and perform some action.
firebase.auth().onAuthStateChanged( user => {
if (user){
this.userProfile = user;
} else {
this.userProfile = null;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.