Recall & Review
beginner
What is Firebase Authentication used for in Android apps?
Firebase Authentication helps apps sign in users easily and securely using email, phone, or social accounts like Google or Facebook.
Click to reveal answer
beginner
Which Firebase class is commonly used to manage user sign-in and sign-out?FirebaseAuth is the main class to handle user authentication tasks like sign-in, sign-out, and checking current user.Click to reveal answer
beginner
How do you check if a user is currently signed in with Firebase Authentication?
Use FirebaseAuth.getInstance().currentUser. If it is not null, a user is signed in.
Click to reveal answer
beginner
What method is used to sign in a user with email and password in Firebase Authentication?
Use signInWithEmailAndPassword(email, password) method from FirebaseAuth instance.
Click to reveal answer
intermediate
Why is it important to handle authentication errors in Firebase Authentication?
Handling errors helps show clear messages to users, like wrong password or network issues, improving user experience.
Click to reveal answer
Which Firebase class do you use to sign out a user?
✗ Incorrect
FirebaseAuth manages user sessions, including signing out users.
What does FirebaseAuth.getInstance().currentUser return if no user is signed in?
✗ Incorrect
It returns null when no user is signed in.
Which method signs in a user with email and password?
✗ Incorrect
signInWithEmailAndPassword is used to sign in existing users.
What should you do after a successful Firebase Authentication sign-in?
✗ Incorrect
After sign-in, apps usually welcome users and show main content.
Which of these is NOT a Firebase Authentication sign-in method?
✗ Incorrect
Direct database login is not a Firebase Authentication method.
Explain how to implement email/password sign-in using Firebase Authentication in an Android app.
Think about creating a FirebaseAuth object and calling signInWithEmailAndPassword with user input.
You got /4 concepts.
Describe why handling authentication errors improves user experience in mobile apps.
Consider what happens if users see confusing errors or no feedback.
You got /4 concepts.