Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error 12500 in google sign in 8.3.0 when requesting ".requestServerAuthCode"

With the new google sign 8.3.0 the login works until requesting ".requestServerAuthCode("client id from web application under Oauth 2.0 client ids") .

Looks something like "10381xxxxx183-u8g0o9lig1qli29jxyytrrrewe5lhckfp.apps.googleusercontent.com"

If I ask for this server auth code I get in onActivityResult status 12500. Without it the login works and you get succes.

like image 369
nvasilescu Avatar asked Dec 03 '22 15:12

nvasilescu


1 Answers

I also struggled with the same problem. If I added requestServerAuthCode method, I was not able to sign in.

Make sure you have provided a valid "Web Client Id" (Not Android) in the method requestServerAuthCode

Problem was with SHA configuration. I created a keystore and used it to generate SHA and provided it while generating google-services.json . But while debugging, application was using debug keystore.

Everything worked fine after I configured 'debug' version to use the same keystore. Where is debug.keystore in Android Studio

Hope it helps. :)

like image 95
Chandranshu Garg Avatar answered Dec 28 '22 11:12

Chandranshu Garg