简体   繁体   中英

Google Sign in delete cookies on signOut

I'm validating the user's account if he is allowed to sign in. When he isn't allowed, he will be signed out with: gapi.auth2.getAuthInstance().signOut()

The problem is when he presses the sign in button again, the account chooser won't appear. It just uses the old cached account and he will be immediately signed out again.

How can I delete the cookies, in order to show the account chooser again?

Haven't confirmed yet, but you might want to revoke the access instead of signOut() . https://developers.google.com/identity/sign-in/web/disconnect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM