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

conflict with another applicaton using react native google signin #1089

Open
walty8 opened this issue Aug 6, 2022 · 3 comments
Open

conflict with another applicaton using react native google signin #1089

walty8 opened this issue Aug 6, 2022 · 3 comments

Comments

@walty8
Copy link

walty8 commented Aug 6, 2022

I have two react native applications and both use react native google signin, today I found that the login session of the two applications will actually interfere with each other.

Steps to Reproduce

  1. open application A, do GoogleSignin.signIn() with Google account A.

  2. open application B, do GoogleSignin.signin() with Google account B

  3. kill application A, and start application A with GoogleSignin.signInSilently(). Token of Google account B will be collected.

Expected Behavior

Application A should get the token of Google Account A

Actual Behavior

Application A got the token of Google account B

Environment

iOS 15.5

Remarks

I suspect it's because the Google login session is shared among different applications. And signInSilently will actually log into the latest logged in account?

I could somehow save the refresh and access tokens into the local storage, but I have no idea how to feed the tokens back to the instance of GoogleSignin.

Thanks

@muhabutt
Copy link

muhabutt commented Sep 9, 2022

I am also facing the same issue, a duplicate project in android. version 8.0.0.

Screenshot 2022-09-10 at 0 08 44

@mnebuerquo
Copy link

@muhabutt That seems to be a separate issue from this one. Two instances of this module causing manifest merge errors, right?

@vonovak
Copy link
Member

vonovak commented Mar 7, 2023

Hello and thanks for reporting,
@walty8 this sounds like a fairly serious bug, but at the same time I find it highly unlikely. Could you report this at the native google sign in SDK repository? https://github.com/google/GoogleSignIn-iOS

This package is only a wrapper on top of it so the problem likely originates there.

Thank you 🙂

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