How to Fix: Google sign in failed com.google.android.gms.common.api.ApiException: 10:
Verify your OAuth2 configurations in the Google API Console.
📋 Table of Contents
The error message 'UNREGISTERED_ON_API_CONSOLE' indicates that the OAuth2 related configurations in your Firebase project are not correctly set up. This is likely due to missing or incorrect configuration of the Google Sign-In API.
🛠️ Step-by-Step Verified Fixes
Method 1: Verify OAuth2 Configuration
- Step 1: Go to the Google Cloud Console and select your Firebase project.
- Step 2: Navigate to the APIs & Services > OAuth 2.0 clients page.
- Step 3: Ensure that the 'Web application' client ID is selected and has the correct project ID, authorized JavaScript origins, and authorized redirect URIs.
Method 2: Update Firebase Configuration
- Step 1: In your Firebase project, go to the Firebase Console and select the Authentication tab.
- Step 2: Ensure that the 'Google Sign-In' provider is enabled and has the correct configuration settings.
- Step 3: Verify that the 'OAuth2 Configurations' section is correctly set up with the required client ID, authorized JavaScript origins, and authorized redirect URIs.
💡 Conclusion
By following these steps, you should be able to resolve the 'UNREGISTERED_ON_API_CONSOLE' error and successfully integrate Google Sign-In into your Firebase project.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat