Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Auth Ui Google Sign In Code:10, message:10:

Firebase Auth Ui Google Sign In Code:10, message:10:

I use firebase auth-ui to sign in with google,

it toasted

Code:10, message:10:

implementation 'com.firebaseui:firebase-ui-auth:4.1.0' 
like image 359
Jack Wilson Avatar asked Jul 12 '18 21:07

Jack Wilson


People also ask

How do I get my Firebase authorization code?

To sign a user into your app, you first get authentication credentials from the user. These credentials can be the user's email address and password, or an OAuth token from a federated identity provider. Then, you pass these credentials to the Firebase Authentication SDK.

How do I fix this app is not authorized to use Firebase authentication?

Make sure you add the SHA1 key from Play Console to your app in the Firebase Console. Also, the google-services. json file needs to be downloaded again, and added to app, after submitting to app store. Then re-upload to google play store.

How does Google sign in work with Firebase?

Enable Google as a sign-in method in the Firebase console: In the Firebase console, open the Auth section. On the Sign in method tab, enable the Google sign-in method and click Save.


2 Answers

Google this days are making simple things complicated. The problem is the third key,

1- The debug key

2- The release key

3- Google Play App signing key

You need THREE keys to figure out ONE Google SignIn.

Does facebook also need three keys? Maybe one day google will need 30 keys.

like image 152
Jack Wilson Avatar answered Nov 10 '22 02:11

Jack Wilson


To have a smooth sign in with Google across build variants (Debug, Release, and Store):

  1. Go to Firebase admin console and open the project settings
  2. Scroll down to "Your apps" section
  3. Add 3 SHA-1 Values. (the one from your debug key, the one from your release key and the one from Google play singing tab)

For debugging and release keys, you can use the keytool to generate the SHA-1 value as in the docs.

EDIT Tp reach the "App Signing" in the new Google Play console:

  • From Left side bar open Setup section
  • App Integrity
  • Then App Signing Key Certificate

For Google signing SHA-1 key, Go to Google play console, Open "Release Management" section and click on "App Signing" sidebar menu item. You will find the SHA-1 fingerprint value there under "App signing certificate"

like image 29
MSaudi Avatar answered Nov 10 '22 02:11

MSaudi