[firebase_auth]: [firebase_auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ] #12774
Labels
Needs Attention
This issue needs maintainer attention.
platform: android
Issues / PRs which are specifically for Android.
plugin: auth
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android
Description
I have correctly setup my Android/iOS/Web apps in Firebase Console, and I have Firebase Phone Auth correctly working on iOS (production and simulator), web, and Android (ONLY with the app downloaded from Google Play Store).
However, the authentication does NOT work on Android when running the app in Debug, Profile or Release mode, either on a real device or the emulator. I keep getting the same error message:
In Firebase Console, I got all the SHA-1 and SHA-256 keys correctly added to the Android app:
In Google Cloud Console - Credentials, I got all the auto-generated keys from Firebase, with their respective SHA-1 keys that I also put in the Firebase Console:
This has been the setup of my API KEYs for a long time now, I haven't changed anything. Please let me know if you need details regarding how each API Key is setup and/or restricted.
Reproducing the issue
Expected Behavior
The 6-digit OTP code should be sent
Actual Behavior
I get error: [firebase_auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ]
Firebase Core version
2.31.0
Flutter Version
3.19.6
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: