Created
June 12, 2017 13:08
-
-
Save javebratt/b1a7188877d9ef7d415dc142e71046ef 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
firebase.auth().onAuthStateChange( user => { | |
if (!user){ | |
// No user, send to login. | |
} else { | |
// There is a user, check for email verification. | |
if (user.emailVerified) { | |
// Email verified, do your thing. | |
} else { | |
// No verification yet | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment