Problem:
Firebase Authentication was functioning without issues. However, after an Android Studio upgrade, the debug build began to fail, displaying the following error message:
D/PhoneAuthActivity( 7392): signInWithCredential:failure:com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ].
This error occurred despite not making any changes to the code after a successful login.
Solution:
Updated (May 12th, 2022):
Play store Console > Your project > Release > Setup > App integrity
[Image: SHA-1 and SHA-256 fingerprints from Play Store Console]
Firebase Console > Your project > Settings of the app > Add Fingerprint
[Image: Fingerprints added to be in Firebase console]
Additional Considerations:
The above is the detailed content of \'This App Is Not Authorized to Use Firebase Authentication\': How to Solve the Error After an Android Studio Upgrade?. For more information, please follow other related articles on the PHP Chinese website!