Google-signin: Login fail with error, GoogleSigninError: DEVELOPER_ERROR

Created on 15 May 2018  路  3Comments  路  Source: react-native-google-signin/google-signin

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();
  };

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

All 3 comments

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

浣犲湪鍝効鐢ㄥ埌鐨刦irebase.auth()

I'm also getting DEVELOPER_ERROR. I tried every solution but its not working.

Was this page helpful?
0 / 5 - 0 ratings