Notes
Firebase Authentication
onAuthStateChanged
firebase.auth().onAuthStateChanged(currentUser => {
if (currentUser) {
// User is signed in.
} else {
// No user is signed in.
}
});Register Email/Password
firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});Sign In Email/Password
Create Provider
OAuth sign in with a provider
Phone Auth
Last updated