Table of Contents
Init
// Initializefirebase.initializeApp(config)// Appfirebase.app()// Get app namefirebase.app().name
Authentication
// Sign in pre-build UIui.start(element, options)// Authfirebase.auth()// Create user with email and passwordfirebase.auth().createUserWithEmailAndPassword(email, password)// Sign in with email and passwordfirebase.auth().signInWithEmailAndPassword(email, password)// On auth state changedfirebase.auth().onAuthStateChanged(user)// Current userfirebase.auth().currentUser// Auth providers datauser.providerData// Update profileuser.updateProfile({ displayName, photoURL})// Update emailuser.updateEmail(email)// Send email verificationuser.sendEmailVerification()// Set auth language for emailsfirebase.auth().languageCode = 'fr'// Use device languagefirebase.auth().useDeviceLanguage()// Update passworduser.updatePassword(newPassword)// Send password reset emailfirebase.auth().sendPasswordResetEmail(email)// Delete useruser.delete()// Re-authenticate useruser.reauthenticateWithCredential(credential)// Sign outfirebase.auth().signOut()
Database
// Databasefirebase.database()
Storage
Edit this page on GitHub
// Storagefirebase.storage()