I have added the debug signing key (as mentioned
here) and the app signing key (as mentioned
here) in the firebase console, and I am trying to authenticate via Microsoft. But still even after this I am facing a ERROR_INVALID_CERT_HASH issue while trying to authenticate.
Error Message : com.google.firebase.auth.FirebaseAuthException: There was an error while trying to get your package certificate hash.
Error Code: ERROR_INVALID_CERT_HASH
Stack Trace:
com.google.firebase.auth.api.internal.zzdr.zzb(Unknown Source:37)
com.google.firebase.auth.internal.zzah.onReceive(Unknown Source:32)
androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313)
androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:121)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loop(Looper.java:246)
android.app.ActivityThread.main(ActivityThread.java:8456)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Implementation is same as mentioned
here.