mirzemehdi / KMPAuth

Kotlin Multiplatform Authentication Library targetting android and iOS
https://mirzemehdi.com/KMPAuth/
Apache License 2.0
231 stars 19 forks source link

GoogleLegacyAuth Error: com.google.android.gms.common.api.ApiException: 10: #41

Closed Creat0r69 closed 3 months ago

Creat0r69 commented 3 months ago

When i try to Sign in with goole i get this error 'GoogleLegacyAuth Error: com.google.android.gms.common.api.ApiException: 10' and token return null and the sheet closed 2024-07-31 10:59:57.166 3888-5333 BufferQueueProducer surfaceflinger E healthcare_system.androidApp/com.google.android.gms.auth.api.signin.internal.SignInHubActivity$_23500#0 disconnect: not connected (req=1)

i double check SHA1 key it's the correct one and i checked the ID client also correct i've been stuck on this error for like 3 days now i need help

mirzemehdi commented 3 months ago

@Creat0r69 Please also make sure that, when initializing the library you pass web server id, instead of android client id.

Related solution: https://stackoverflow.com/questions/47437678/why-do-i-get-com-google-android-gms-common-api-apiexception-10

Creat0r69 commented 3 months ago

i did that

Creat0r69 commented 3 months ago

https://www.youtube.com/watch?v=mLfqCyO8-Bc followed this tuto step by step he is using KMPAuth lib

Creat0r69 commented 3 months ago

image used this one

mirzemehdi commented 3 months ago

@Creat0r69 maybe your google-services.json file is the old one if you use firebase, and after enabling google auth from firebase download google-services.json file and try again

Creat0r69 commented 3 months ago

i don't use firebase

mirzemehdi commented 3 months ago

check with other devices/emulator see if still happens.

Creat0r69 commented 3 months ago

still same error and i didn't add google-services.json i added client id directly image image image

Creat0r69 commented 3 months ago

i also get this GoogleAuthUiProvider error: During begin sign in, failure response from one tap: 10: [28444] Developer console is not set up correctly.

mirzemehdi commented 3 months ago

@Creat0r69 Attaching related solutions:

https://support.google.com/googleplay/android-developer/thread/233538051/one-tap-sign-in-not-working-on-production?hl=en

https://stackoverflow.com/questions/76823978/error-10-developer-console-is-not-set-up-correctly-not-using-firebase-one-t

Closing this issue as it not related library, but more about some configuration issue.