Troubleshooting
Common Google sign-in failures and how to diagnose them.
Web: unregistered_origin
The current browser origin is not listed under Authorized JavaScript origins for the OAuth Web client ID.
Fix:
- Log the exact
window.location.origin. - Add that exact origin to Google Cloud Console.
- Add
http://localhostfor local development. - Save changes and wait for propagation.
- Hard refresh the app.
Web: GIS script cannot load
Check network access to:
https://accounts.google.com/gsi/clientBrowser extensions, ad blockers, or corporate network rules can block it.
npm: React Native Firebase peer conflict
Versions before 1.0.1 restricted the optional
@react-native-firebase/auth peer to ^24.1.1, so npm rejected applications
using React Native Firebase 25 or 26.
Upgrade this package to 1.0.1 or newer, then make sure
@react-native-firebase/app and @react-native-firebase/auth use the same
version. Version 1.0.2 expands the supported Auth versions to 23.8.8,
24.0.x, 24.1.1, 25.x, and 26.x. React Native Firebase 24.1.0 remains
excluded because of its upstream iOS startup regression. Regenerate the lockfile
after aligning the versions. Avoid --force and legacy-peer-deps as permanent
fixes because they bypass peer compatibility checks.
iOS: Firebase Swift pods do not define modules
This CocoaPods error comes from React Native Firebase's iOS linkage, not from
the Google credential pod. Do not add use_modular_headers! or Firebase pods
manually.
- With React Native Firebase 23, 24, or 25, use its documented
CocoaPods/static-framework configuration through
expo-build-properties. - With React Native Firebase 26, use its default Swift Package Manager/dynamic
framework setup on supported React Native versions. If you intentionally opt
out of Swift Package Manager, use the complete documented
disableSPMand static-linking configuration.
After changing the Expo config, regenerate the native project and rebuild:
npx expo prebuild --clean
npx expo run:iosFor EAS, commit the updated Expo config and lockfile before starting a new build. See the React Native Firebase Expo installation guide for the version-specific configuration.
iOS: missing iosClientId
iOS requires an iOS OAuth client ID. Provide iosClientId, write GIDClientID
to Info.plist, or bundle GoogleService-Info.plist.
iOS: redirect does not return to app
Check that the reversed iOS client ID URL scheme is registered in Info.plist.
If using Expo, verify the config plugin ran and rebuild the native app.
Android: no credential found
If android.accountFilter is "authorized-first", the package falls back to
all accounts when Android returns no credential. If sign-in still fails, check:
- Google Play Services availability.
- Correct package name.
- Correct SHA fingerprints.
- The OAuth Web client ID passed as
webClientId.
Android: installed app mismatch
Google validates the installed app's package name and signing certificate. Add debug, release, and Play app signing fingerprints to Google/Firebase.
Expo: works on web but not device
Expo web only exercises the web implementation. Device builds need native setup and a rebuilt app.
The Expo Go native app cannot load the package's custom native module. Create an Android development build to test Google Credential Manager:
npx expo run:androidUse npx expo start --web to continue testing the web implementation.
Structured browser acquisition errors (1.1.0)
Catch GoogleCredentialError from the package root or /web. Its code
provides a stable category and reason preserves Google's reported reason:
| Code | Meaning |
|---|---|
prompt_unavailable | One Tap cannot be displayed; offer the explicit button in the page. |
cancelled | User dismissal, cancellation, or an aborted component/request. |
configuration_error | Missing/invalid client, origin, secure transport, or button configuration. |
script_load_failed | GIS failed to load or exceeded its 15-second load timeout. |
timeout | A requested credential was not received within two minutes. |
request_in_progress | Another credential request or button owns the page-global GIS client. |
missing_credential | Google called back without a credential. |
unavailable | A web-only API was called outside a browser. |
unknown | An unrecognized Google reason. |
Native SDK errors and authentication-provider exchange errors keep their existing
contracts; they are not reclassified as browser acquisition errors. Never infer
that opt_out_or_no_session identifies one specific browser setting: it cannot
distinguish a missing Google session from an opt-out or restricted session access.