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

19,344

Solution 1

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.

Solution 2

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"

Solution 3

These tips have worked for me :

1 - Verify your SHA-1 key is still corresponding between your app and firebase : you can generate this SHA key as @Yuliiia mentionned with the command line but you can also do it directly from you android studio project. Click on "Gradle" tab (on the right of the IDE) then drop-down android folder and double-click on "signingReport".

2 - Go to your firebase console, download a new version of the google-services.json file and replace the former one by it.

3 - Last trick : delete the account (e.g: [email protected]) you're trying to connect with from the firebase authentication console.

Note 1: For each solution above I suggest to uninstall the app from your emulator or mobile.

Note 2: Error code from firebase is not only code:10, it could throw code: 8, code: 16, etc.

Hope it helps !

Solution 4

I had the same issue, when I was using the downloaded version on google-services.json, but worked when used Tools->FireBase and connected to database and di the sync.

Solution 5

Have you added your SHA certificate fingerprint code to your Firebase project? If no, do it. Official instruction to get SHA certificate fingerprint.

To get the release certificate fingerprint (Linux/Mac OS):

keytool -exportcert -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>

To get the debug certificate fingerprint (Linux/Mac OS):

keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore

The keytool utility prompts you to enter a password for the keystore. The default password for the debug keystore is android. The keytool then prints the fingerprint to the terminal. For example:

Certificate fingerprint: SHA1: DA:39:A3:EE:5E:6B:4B:0D:32:54:BF:EF:09:60:30:90:AF:D8:07:09
Share:
19,344
Jack Wilson
Author by

Jack Wilson

android developer

Updated on June 06, 2022

Comments

  • Jack Wilson
    Jack Wilson about 2 years

    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'