Recall & Review
beginner
What is a custom authentication token in Firebase?
A custom authentication token is a secure token created by your server to sign in users with Firebase Authentication when you want to manage your own user identities.
Click to reveal answer
beginner
Why would you use custom authentication tokens instead of Firebase's built-in sign-in methods?
You use custom tokens when you have your own user system or want to integrate Firebase Authentication with existing authentication methods outside Firebase.
Click to reveal answer
intermediate
Which Firebase Admin SDK method is used to create a custom authentication token?
The method is createCustomToken(uid, additionalClaims) where uid is the user ID and additionalClaims are optional extra data.
Click to reveal answer
beginner
What information must you include when creating a custom authentication token?
You must include a unique user ID (uid) and can optionally add extra claims like roles or permissions.
Click to reveal answer
beginner
How does a client use a custom authentication token to sign in?
The client receives the token from your server and calls signInWithCustomToken(token) to authenticate with Firebase.
Click to reveal answer
What is the main purpose of Firebase custom authentication tokens?
✗ Incorrect
Custom tokens let you sign in users using your own authentication system with Firebase Authentication.
Which Firebase SDK is used to create custom authentication tokens?
✗ Incorrect
The Firebase Admin SDK runs on your server and creates custom tokens.
What is required to create a custom token?
✗ Incorrect
A unique user ID (uid) identifies the user in the token.
How does the client authenticate with Firebase using a custom token?
✗ Incorrect
The client uses signInWithCustomToken(token) to authenticate with the custom token.
Can you add extra information like user roles in a custom token?
✗ Incorrect
You can add extra claims like roles or permissions when creating the token.
Explain how custom authentication tokens work in Firebase and why you might use them.
Think about how your server and client communicate to authenticate users.
You got /4 concepts.
Describe the steps to create and use a custom authentication token in Firebase.
Focus on server token creation and client sign-in.
You got /4 concepts.