skip to Main Content

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

i have try so much things to solve this but nothing went happen

2

Answers


  1. check the same firebase project in google cloud and cross-verify SHA-1 keys in firebase to google cloud, if see any old SHA-1 keys delete them or if your SHA-1 key from Firebase is not in google cloud then add sha-1 from add credential option. if still same error then create a new firebase project and then try again.

    Login or Signup to reply.
  2. First, get the SHA-1 and SHA-256 keys. Run the following commands in your project root terminal window (from vscode or Android studio) one by one

    cd android
    ./gradlew signingReport
    

    this will take few minutes then you’ll be popped up with a screen similar to this.

    enter image description here

    Copy SHA-1 and SHA-256 keys and paste it in firebase project settings at

    enter image description here
    Scroll down to find your android app then click on Add fingerprint

    Note: Make sure to add both the keys, else it may not work as desired.

    Happy coding 🙂

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