Prompt
Why is Google sign in failing in my app?
Latest observation
Oct 6, 2026
OpenAI APIWeb search: off
Google sign-in can fail for a lot of different reasons, and the fix depends on the exact error you’re seeing. Here are the most common causes and what to check:
Common causes
-
OAuth client ID mismatch
- You may be using the wrong client ID for your platform:
- Android client ID for Android
- iOS client ID for iOS
- Web client ID for backend/auth exchange
- A mismatch often causes
DEVELOPER_ERROR,invalid_client, or sign-in just silently failing.
- You may be using the wrong client ID for your platform:
-
SHA-1 / SHA-256 not configured
- For Android, your app’s signing certificate fingerprint must be added in the Google Cloud Console / Firebase project.
- If you’re using debug build, you need the debug SHA-1 too.
-
Package name / bundle ID mismatch
- The app’s package name (Android) or bundle ID (iOS) must exactly match what’s registered in Google/Firebase.
-
Google Sign-In API not enabled
- In Google Cloud Console, the relevant APIs or Google Identity services may not be enabled.
-
Wrong configuration file
- Android:
google-services.json - iOS:
GoogleService-Info.plist - If these files are outdated or from the wrong project, sign-in fails.
- Android:
-
Missing OAuth consent screen / test user setup
- If your app is in testing mode, only added test users can sign in.
-
Incorrect redirect URI / web client setup
- Common in Flutter, React Native, web, or auth-backend flows.
- The redirect URI must match exactly what Google expects.
-
Network / Play Services issues
- On Android, outdated or missing Google Play Services can block sign-in.
-
Library version incompatibility
- Old auth libraries can break with newer Google Identity requirements.
-
Firebase/Auth backend mismatch
- If you sign in with Google and then exchange the token with Firebase/Auth server, the token audience/client ID must match.
What I need from you to pinpoint it
Please send:
- The exact error message or stack trace
- Your platform: Android / iOS / Web / Flutter / React Native / etc.
- Whether you’re using Firebase Auth or Google Sign-In directly
- Relevant config snippets:
- Android
build.gradle google-services.json/GoogleService-Info.pliststatus- Sign-in code
- Android
Quick checks for Android
- Confirm
applicationIdmatches the Firebase/Google Console package name - Add debug SHA-1 and release SHA-1
- Re-download
google-services.json - Make sure Google Play Services is installed/up to date
- Ensure you’re using the correct
webClientIdif your SDK requires it
If you paste the error and your sign-in code, I can tell you the likely root cause pretty quickly.