You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I saw in the example this little snippet:
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.
The text was updated successfully, but these errors were encountered: