Created
March 3, 2018 15:09
-
-
Save Ryan-Gordon/736b76f0d0f0711d48722eab3dad0dcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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