[firebase_app_check] FirebaseAuthException 'internal-error' on iOS with Google Sign-In Despite Perfect Configuration
#17691
Unanswered
DavidAgbaje5
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to use Google Sign-In on a physical iOS device (both debug and release builds), the
FirebaseAuth.instance.signInWithCredentialcall fails with aFirebaseAuthExceptionwhose code isinternal-error. This occurs even though Firebase App Check appears to be perfectly configured on both the client and server. The error suggests a server-side failure during App Check token validation.Steps to Reproduce
FirebaseAuth.instance.signInWithCredentialcall is made.Expected behavior
The user should be successfully signed into Firebase.
Actual behavior
The
signInWithCredentialmethod throws aFirebaseAuthExceptionwith the codeinternal-error.Exhaustive Troubleshooting Steps Taken
We have performed an exhaustive series of diagnostic steps that rule out all common configuration errors. The issue is not a user configuration error.
Client-Side Configuration (iOS):
App Attestcapability is enabled in Xcode.Runner.entitlementsfile contains<key>com.apple.developer.devicecheck.appattest-environment</key><string>production</string>.GoogleService-Info.plistis up-to-date and is a member of the mainRunnerbuild target.AppDelegate.swiftdoes not contain a conflicting manualFirebaseApp.configure()call.Server-Side Configuration:
Build Environment & Dependencies:
firebase_*andgoogle_sign_inpackages to the latest stable versions.flutter clean, deleting app from device, removingPodsandPodfile.lock, and runningpod install --repo-update).Ultimate Isolation Test:
GoogleService-Info.plistfrom a brand new, clean Firebase project. This proves the issue is not in the Firebase project's backend configuration but is local to the app code/dependencies.This appears to be a deep incompatibility or bug within the FlutterFire SDKs.
Beta Was this translation helpful? Give feedback.
All reactions