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

No way to switch account without signing out #843

Closed
DnEgorWeb opened this issue Mar 27, 2020 · 1 comment
Closed

No way to switch account without signing out #843

DnEgorWeb opened this issue Mar 27, 2020 · 1 comment

Comments

@DnEgorWeb
Copy link

Right now if I want to sign in to another account I have to signOut first, and then I need to call signIn again, only then I can see google-signin modal. But if user changes his mind at this moment and cancels operation after he has signed out and called google modal to sign in again, he appeared to be logged out. Is there a way to show the auth modal without logging out? So if user decided not to sign in to another account, he would be still logged in to the old one.

Steps to Reproduce

  1. Sign in to your google account.
  2. Now call sign in again to change account (nothing happens)
    or
  3. Sign in to your google account.
  4. Sign out. (here we loose out token's validity)
  5. Call sign in, see the modal screen with google authentication.
  6. Cancel operation (no valid token anymore for the old account)

Expected Behavior

  1. Sign in to google account
  2. Now anytime call sign in again and 1) see the modal again and 2) either sign in to another account or cancel operation and stay signed in to the previous one.

Actual Behavior

No way to switch account without logging out. After logging out token is no longer valid and if user canceled sign in operation when he wanted to switch account, he appeared to be logged out.

Environment

  • react-native version: 0.61.5
  • @react-native-community/google-signin version: 3.0.4
@vonovak
Copy link
Member

vonovak commented Mar 28, 2020

hello, I believe this qualifies as a duplicate of #200 and so I'll close this. Please read more there. Thank you.

@vonovak vonovak closed this as completed Mar 28, 2020
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

2 participants