-
-
Notifications
You must be signed in to change notification settings - Fork 877
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 multiple accounts simultaneously #200
Comments
+1 |
This is indeed very interesting feature. Please feel free to send PR to contribute. |
|
Has there been any progress with this feature? |
No one has submitted any PRs for it @casey-budee 😢 |
Hey amazing react-native-google-signin people (and I mean that, I'm using this library, I followed the instructions and it worked, that's amazing) Anyone have a sketch of what would be required here? Or some example code (maybe other language from flutter or pure android or whatever) where they handle it? I'm not asking anyone to do a bunch of work here, just if anyone that has familiarity with the code and thought through it before wants to brain dump, it might be the baton I or someone else could pick up to then propose a PR Cheers |
hi @mikehardy thanks for the kind words. As for how to handle multiple users - the JS apis mirror the native apis, meaning the native apis also do not give a strong hint that multiple users are supported (eg. there is no On android this is done via One possible way to support multiple users (which may not work for everybody though) would be to call I don't need this, but if someone does, please get in touch and you can hire me. To respond to the first post, It's true the exported JS class is a singleton, but that is not the limiting factor here. some resources: SO - ios - it may be possible to rewrite this library to use GTMAppAuth |
This is a feature request.
Since
GoogleSignin
is exported as a singleton, developers cannot create separate - differently configured - instances for use in an app that is signed into multiple accounts simultaneously.This is relevant for using Google APIs on behalf of multiple Google accounts simultaneously, where the APIs operate on resources that cannot be shared between Google accounts. Examples of such APIs are those that are part of GSuite/Google Apps for Business APIs, and which are only available to domain admins.
The text was updated successfully, but these errors were encountered: