Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google-signin failed with [Error: DEVELOPER_ERROR]

I am trying to google sign-in with @react-native-community/google-signing package 

i have added fingerprint on Firebase console, almost i have done all configuration steps which are important for google sign-in like enable google-signin on Firebase console and add webClientId in `GoogleSignin.configure({ webClientId: 'weClientId'

});` etc. but still i am facing developer :-[Error: DEVELOPER_ERROR]

please apologies for my poor English and give me a guidance so that i can come out from this error

like image 991
Ajay Batham Avatar asked Sep 12 '26 22:09

Ajay Batham


2 Answers

Use this command to get your real SHA-1

cd android && keytool -list -v -keystore app/debug.keystore

And the password is: android

Put it on your android key on google

like image 114
Roel Leal Avatar answered Sep 14 '26 11:09

Roel Leal


Your SHA1 and SHA256 are not correctly added to the Firebase.

  1. Find the .keystore file. If you are having this error on a real device, you must be using other keystore file for that. List SHA keys using that exact file running: keytool -keystore path-to-keystore-file -list -v

  2. Download google-services.json.

  3. Configure GoogleSignin using client_id from where client_type is 3.

GoogleSignin.configure({
 offlineAccess: true,
 webClientId: 'your_client_id.apps.googleusercontent.com',
});
like image 27
Nagibaba Avatar answered Sep 14 '26 12:09

Nagibaba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!