skip to Main Content

I’m creating a flutter app using firebase for backend everything is working great in development and release mode testing but when I deploy the app to play store and try to login or signup through mobile number it shows the error

an error has occurred, please try again. 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. [ a play_integrity_token was passed, but no matching sha-256 was registered in the firebase console. please make sure that this application’s packagename/sha256 pair is registered in the firebase console. ]

I added all the SHA-1 and SHA-256 in the firebase also added latest Json file in the project but nothing works

firebase image where I added all the SHA's

play store SHA's

play store upload SHA's

2

Answers


  1. One thing you can try is go to Firebase console -> Project Settings -> Integration and connect your Google Play store app with Firebase.

    Login or Signup to reply.
  2. This seems like an issue with a SHA-256 fingerprint not being configured properly in the Firebase console. Try following the steps for the setup process.


    1. Get the SHA-256 Fingerprint

    • In a terminal or command prompt use the following command to get the SHA-256 fingerprint of the application

    keytool -list -v -keystore -alias -storepass -keypass

    Replace the <path-to-your-keystore>, <your-alias>, <your-storepass>, <your-keypass>


    2. Update SHA-256 Fingerprint in Firebase

    • In the Firebase console select your app & go to Project Settings.
    • In the selected app get configurations for the Android app.
    • Add the SHA-256 Fingerprint under SHAA certificate fingerprints

    3. Update the App on the Play Store

    • Create a production build with your preferred bundle method either APK/AAB and upload it into Play Store.
    • Make sure that the correct SHA-256 fingerprint is published.

    4. Check Play Integrity API Settings

    • Make sure that the Play Integrity API is properly configured if it is in use.
    • If needed, add the Google Cloud Console related to Play Integrity

    5. Resolution

    • After adding the keys and the build it will take some time to update the new keys in the published application.

    These steps should provide you with better support and configuration steps to resolve the authenticated issue.

    Let me know if this helps… CHEERS!!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search