Recall & Review
beginner
What is a user session in Firebase Authentication?
A user session is the period during which a user is signed in and their identity is remembered by the app, allowing access to protected resources without re-authenticating.
Click to reveal answer
beginner
How does Firebase keep a user signed in across app restarts?
Firebase stores the user's authentication token securely on the device and automatically refreshes it, so the user stays signed in even after closing and reopening the app.
Click to reveal answer
beginner
What method do you use to sign out a user in Firebase?
You use the signOut() method from Firebase Authentication to end the user session and clear the stored authentication state.
Click to reveal answer
intermediate
Why is session expiration important in user session management?
Session expiration limits how long a user stays signed in to protect security, ensuring that old sessions don’t allow unauthorized access if a device is lost or shared.
Click to reveal answer
intermediate
What is the role of refresh tokens in Firebase user sessions?
Refresh tokens allow Firebase to get new access tokens without asking the user to sign in again, keeping the session active securely in the background.
Click to reveal answer
Which Firebase method signs out the current user?
✗ Incorrect
The correct method to sign out a user in Firebase Authentication is signOut().
How does Firebase keep users signed in after app restarts?
✗ Incorrect
Firebase securely stores tokens and refreshes them to keep users signed in without asking for credentials repeatedly.
What happens when you call signOut() in Firebase?
✗ Incorrect
Calling signOut() ends the user session and clears stored authentication data.
Why are refresh tokens important in Firebase sessions?
✗ Incorrect
Refresh tokens let Firebase get new access tokens silently to keep sessions active.
What is a key security reason for session expiration?
✗ Incorrect
Session expiration helps protect user accounts by limiting how long a session stays valid.
Explain how Firebase manages user sessions to keep users signed in securely.
Think about what happens behind the scenes after a user logs in.
You got /3 concepts.
Describe the steps and importance of signing out a user in Firebase.
Consider what happens when a user wants to stop using the app.
You got /3 concepts.