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

A simple solution for App-signed enabled app.

  • Find SHA-1 certificate fingerprint from App signing from play store console.

UPDATE (10-10-2020) FOR NEW PLAYSTORE CONSOLE:

Play store Console > Your project > Release > Setup > App signing

enter image description here

FOR OLD PLAYSTORE CONSOLE:

Play store Console > Your project > Release management > App signing

enter image description here

  • Place both SHA1 fingerprints to your firebase app.

Firebase Console > Your project > Settings of the app > Add Fingerprint

enter image description here

  • The good thing is we don't need to generate SHA1 fingerprint from cmd with the help of the Keystore.

When you updated Android Studio, the debug key which is used to sign debug apps might have changed. Just add the new SHA-1 checksum of your debug key in the firebase console.

Easiest way would be to connect/sync to firebase from

Tools>Firebase>Authentication>Connect>Sync


If you want to do it manually or for release keystore, first generate SHA-1 checksum using following command:

keytool -list -v -keystore KEYSTORE_PATH -alias ALIAS_NAME

Then copy the SHA-1 checksum and go to:

Firebase Console > Your project > Settings of the app > Add Fingerprint

For more info, read this guide: Authenticating Your Client | Google APIs for Android


If you are using a Emulator for phone OTP verification it won't work since it does not have a sim. So try installing it to your mobile(with sim) and check if the error persists.