This is code about google login as a below and my error is GoogleSigninError: DEVELOPER_ERROR
What wrong with this package, my friend got same error !!
onGoogleButtonPress = () => {
GoogleSignin.signIn()
//signIn Google successfully, get idToken and accessToken
.then(user => {
console.log(user);
const credential = firebase.auth.GoogleAuthProvider.credential(
user.idToken,
user.accessToken
);
return firebase.auth().signInWithCredential(credential);
})
.then(currentUser => {
console.log(
`Google Login with user ${JSON.stringify(currentUser.toJSON())}`
);
})
.catch(err => {
console.log(`Login fail with error, ${err}`);
})
.done();
};
To add SHA-1 key in firebase of android setting and it solved my problem for google login of andeoid
浣犲湪鍝効鐢ㄥ埌鐨刦irebase.auth()
I'm also getting DEVELOPER_ERROR. I tried every solution but its not working.
Most helpful comment
To add SHA-1 key in firebase of android setting and it solved my problem for google login of andeoid
https://stackoverflow.com/questions/40088741/google-sign-in-error-statusstatuscode-developer-error-resolution-null/40211682