Hemant Holani
Hemant Holani

Reputation: 1

This app is not authorized to use Firebase Authentication

I am getting this error when using Firebase mobile authentication on my physical device. Looking for solutions I did the following: 1.Updated SHA1 in firebase console 2.I am using firebase Api and android N 3.I checked for play store updates and it shows that it is the latest version Note: I am not using a emulator but a real device and it still is not working.

02-25 11:25:23.430 13164-13164/com.odetion.odetion W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms 02-25 11:25:24.077 13164-13164/com.odetion.odetion W/OtpVerificationActivity: onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ] at com.google.android.gms.internal.zzdxm.zzao(Unknown Source) at com.google.android.gms.internal.zzdye.zza(Unknown Source) at com.google.android.gms.internal.zzdyf.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6165) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

Upvotes: 0

Views: 896

Answers (1)

Alex Mamo
Alex Mamo

Reputation: 138804

As you error says:

Please verifythat the correct package name and SHA-1 are configured in the Firebase Console.

So the problem is either your package name isn't correct or either your SHA-1. Make sure both are correct and try again.

Upvotes: 1

Related Questions