Skip to content
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

Error code 8 with new account sign in #85

Open
theAdmiralNelson opened this issue Apr 9, 2018 · 5 comments
Open

Error code 8 with new account sign in #85

theAdmiralNelson opened this issue Apr 9, 2018 · 5 comments

Comments

@theAdmiralNelson
Copy link

I only get the error INTERNAL ERROR CODE 8 when I try to sign in with a new account (An account that isn't listed when Google lists out possible accounts to sign in with). Otherwise, everything works perfectly. I've seen all of the posts about error code 10, however, since I am able to sign in with any existing account on the phone, I'm pretty sure it has nothing to do with my debug SHA1 key. (I've also checked it for sure).

I get the error when running:

try {
await GoogleSignIn.configure(config.oauth.google)

const googleUser = await GoogleSignIn.signInPromise()

console.log(googleUser)

Here's config.oauth.google (minus the serverClientID):

oauth: {
google: {
scopes: [
'https://www.googleapis.com/auth/plus.me',
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile'
]}}

Anybody seen this before?

@qudde
Copy link

qudde commented Apr 14, 2018

yes, i have if(e.code === 8) --> invoke login function again and it will auto login to the right account

@theAdmiralNelson
Copy link
Author

Yeah, I was trying that work-around as well. However, it seemed like it required one more touch event from the user to actually go through. I’m not totally sure why. Can you post your full work-around, @qudde? Thanks so much for verifying that it will work!

@ldejana
Copy link

ldejana commented Apr 17, 2018

@theAdmiralNelson Did you fix this? If yes can you please write your solution?

@theAdmiralNelson
Copy link
Author

Handling the case that the error.code === 8 by calling GoogleSignIn.signInPromise() again works. But, it requires a touch event from the user before error.code gets returned. Otherwise, the app just hangs. So, I suppose if there's a way to simulate a touch event inside of javascript, that'd be the way to do it. But, no, I haven't gotten it to work just yet.

@tallen11
Copy link

Do we know why it hangs? It only hangs on some versions of Android, but not on others. Anyone have a solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants