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

[feature-request] Access to the "disconnect" functionality #118

Open
tekkamanendless opened this issue Nov 25, 2015 · 0 comments
Open

[feature-request] Access to the "disconnect" functionality #118

tekkamanendless opened this issue Nov 25, 2015 · 0 comments

Comments

@tekkamanendless
Copy link

I saw in the example this little snippet:

var currentUser = gapi.auth2.getAuthInstance().currentUser.get();
if (currentUser) {
   currentUser.disconnect();
}

Long story short, I'd like a "disconnect" method (similar to "signOut").

I have an application where (obviously) people need to log in. So, I used "google-signin-aware" to provide some nice log in and log out buttons, pull their avatars, etc. It works great whenever I (personally) test it because I have between 3 and 10 Google accounts active at any one time.

However, I ran into a problem where a user couldn't log in with her correct account. She had logged in with her personal account, but every time she logged out and then tried to log back in, "google-signin-aware" just rushed her through without providing an account picker (which would have allowed her to sign in with her company account); instead, she was stuck in an endless cycle of log out, log in without an account choice, log out, ...

I eventually got her fixed by using accounts.google.com and signing her out of everything.

This little disconnect magic is what I need. Obviously, I'll be sticking it in my application immediately as is, but I'd like to see it be wrapped up in the component since I don't want to have to know, understand, or worry about the Google javascript API.

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

No branches or pull requests

2 participants