← Firebase learning pathFirebase · Module 2 of 10
Firebase Authentication
Sign users in with email, phone, Google and more.
📖 Key ideas
- Providers: email/password, Google, phone OTP, Apple, GitHub, anonymous.
- createUserWithEmailAndPassword and signInWithEmailAndPassword.
- signInWithPopup(auth, new GoogleAuthProvider()).
- onAuthStateChanged listens for login/logout.
- ID tokens prove identity to your backend.
💡 Real-life example: Firebase Auth is a security desk issuing ID badges (tokens) once it checks who you are.
ProviderSign-in method like Google
onAuthStateChangedListener for login state
ID tokenSigned JWT proving the user
uidUnique user id