0
0
Firebasecloud~20 mins

GitHub sign-in in Firebase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GitHub Sign-In Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens after a successful GitHub sign-in with Firebase?

After a user signs in successfully using GitHub with Firebase Authentication, what is the immediate result in the Firebase system?

AFirebase deletes the user's GitHub account information after sign-in.
BThe user is redirected to the GitHub website to create a new account.
CThe user must manually verify their email address before Firebase creates a user record.
DThe user receives a Firebase ID token and a user record is created or updated in Firebase Authentication.
Attempts:
2 left
💡 Hint

Think about what Firebase Authentication does after a third-party sign-in.

Configuration
intermediate
2:00remaining
Which Firebase configuration is required for GitHub sign-in?

To enable GitHub sign-in in Firebase Authentication, which configuration step is mandatory?

ARegister the GitHub OAuth client ID and client secret in the Firebase console under Authentication providers.
BAdd the GitHub repository URL to the Firebase Realtime Database rules.
CEnable GitHub sign-in by uploading a GitHub SSH key to Firebase Storage.
DConfigure a Firebase Cloud Function to listen for GitHub webhook events.
Attempts:
2 left
💡 Hint

Think about what OAuth credentials Firebase needs to connect with GitHub.

security
advanced
2:00remaining
What is the best practice to secure GitHub OAuth credentials in Firebase?

When configuring GitHub sign-in in Firebase, how should you handle the OAuth client secret to keep it secure?

APublish the client secret in a public GitHub repository for transparency.
BInclude the client secret in the client app code to allow direct GitHub authentication.
CStore the client secret only in the Firebase console and never expose it in client-side code.
DSend the client secret as a URL parameter during sign-in requests.
Attempts:
2 left
💡 Hint

Consider where sensitive credentials should be stored to prevent leaks.

Architecture
advanced
2:00remaining
How does Firebase handle user identity when linking GitHub sign-in with other providers?

If a user signs in with GitHub and later signs in with Google using Firebase Authentication, how does Firebase manage the user's identity?

AFirebase creates two separate user records for GitHub and Google sign-ins automatically.
BFirebase links both sign-in methods to a single user record if the developer explicitly links accounts.
CFirebase deletes the first user record when the second sign-in occurs.
DFirebase requires the user to create a new account for each provider.
Attempts:
2 left
💡 Hint

Think about how Firebase supports multiple sign-in methods for one user.

🧠 Conceptual
expert
2:00remaining
Why does Firebase require redirect URLs in GitHub OAuth setup?

When setting up GitHub sign-in with Firebase, why must you specify redirect URLs in the GitHub OAuth app settings?

ATo tell GitHub where to send the user after authentication so Firebase can complete sign-in securely.
BTo let GitHub bypass user consent screens during sign-in.
CTo enable Firebase to send emails to users after sign-in.
DTo allow GitHub to store user data in Firebase Realtime Database.
Attempts:
2 left
💡 Hint

Consider the OAuth flow and how the app receives the authentication response.