react-native-google-sign-in icon indicating copy to clipboard operation
react-native-google-sign-in copied to clipboard

Possible Unhandled Promise Rejection (id: 0)

Open john1jan opened this issue 8 years ago • 7 comments

getting this warning after selecting a google account from popup

Possible Unhandled Promise Rejection (id: 0):
Object {
  "code": 10,
  "error": "DEVELOPER_ERROR",
}

screenshot_1504083876

john1jan avatar Aug 30 '17 09:08 john1jan

when i checked the logcat it was showing this error


08-31 11:52:41.146  1931  2570 W Auth    : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE
08-31 11:52:41.148  2347  2735 E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE

john1jan avatar Aug 31 '17 06:08 john1jan

same issue any solution for this in android.

shimil2017 avatar Oct 31 '17 09:10 shimil2017

@shimil2017 just check your SHA-1 key is matching in the api console

john1jan avatar Oct 31 '17 09:10 john1jan

its not working on release build on debug build it is working.

shimil2017 avatar Oct 31 '17 11:10 shimil2017

I got same problem. Is there any solution?

UPDATE

so i try use SHA1 in my debug.keystore instead than my-release.keystore and it's work.

hophoppoppop avatar Nov 10 '17 12:11 hophoppoppop

@john1jan I get this error even though my SHA 1 Key is correct, where exactly am I supposed put the SHA1 key and which client ID am I supposed to use for android, is it for the Android OAuth Client ID or Web OAuth Client ID?

thecodecafe avatar Jun 26 '18 15:06 thecodecafe

Check https://developers.google.com/android/guides/client-auth?authuser=0

ravitejalam avatar Jan 31 '21 11:01 ravitejalam