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

Support for multiple accounts #311

Open
rs658726 opened this issue May 19, 2023 · 0 comments
Open

Support for multiple accounts #311

rs658726 opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request triage Issues that need to be triaged

Comments

@rs658726
Copy link

Is your feature request related to a problem you're having? Please describe.
Yes. I have an application that supports multiple gmail accounts. I would like Google-SignIn to retain the login state of multiple accounts at once that way my users can switch back and forth between their gmail accounts without being prompted to login each time.

For example:
User A has 2 gmail addresses. My application allows user A to login to both accounts and switch back and forth between those accounts at a click of a button.

Describe the solution you'd like
currentUser could be an array of GIDGoogleUser. Each user points to a different Google account. There could be a function currentUser(with id:) that would let me get a specific user.
restorePreviousSignIn would return an array of GIDGoogleUser instead of a single user.
Each time I would call GIDSignIn.sharedInstance.signIn, it would add a new user to currentUser.
And so on.

Describe alternatives you've considered
I thought about using an OAuth library instead.

Additional context
None.

@rs658726 rs658726 added enhancement New feature or request triage Issues that need to be triaged labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Issues that need to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant