New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRONG SIGNIN Error: unknown status code: 12501 #281
Comments
I think it is an expected result (error) code, which notify us (the developer) the reason of the sign-in failure -- the failure was caused by user's action. FYI, there are some more useful error codes I encountered previously when using this package: switch (err.code) {
case -5:
// It happens on iOS: app launched the sign in screen, but user refuses to sign in (via pressing BACK button on upper left corner)
case 8:
// It happens on android: app launched the signin dialog (for user picking his account),
// but user dismisses the signin dialog **before** it shows up (either via BACK button or touching outside area of the dialog)
case 12501:
// It happens on android: app launched the signin dialog (for user picking his account),
// but user dismisses the signin dialog **after** it shows up (either via BACK button or touching outside area of the dialog)
// all above error codes reflect that user refused to sign in. The app should provide consequence according to your app's nature.
break;
default:
// other error codes means sign-in really failed, we possibly need to display some error message, or even ask user to try sign in again.
break;
} Above codes are to be put in the |
@heapwalker so i'm abit confused now. Is this working as expected or it is an issue? |
It is working. If user refuses to sign in to your app, you can't force them, right? |
Hmm.. weird. But i saw someone posted the same issue as this. |
It might be useful: GoogleSignInStatusCodes.html#SIGN_IN_CANCELLED But still got no idea where the |
The following documentation contains other error codes, in addition to what @uniwalk has already put here. I just did not find the code |
Not a bug, expected behavior. I'll add to this a list of TODO to try to improve cancel attempt handling on the next release. Please open a new issue if this is a still a problem... Thank you. |
Error message:
I'm getting this error after cancelling google login using android back button.
FYI, i can sign in successfully using below code. This only happened if i try to cancel the login when the account popup appeared.
Google sign in code with firebase
componentDidMount
What I've done:
The text was updated successfully, but these errors were encountered: