kecman
kecman

Reputation: 853

chrome.identity.launchWebAuthFlow logout/switch user

I make users login to my chrome extension through my own OAuth2 API which uses google signin, through chrome.identity.launchWebAuthFlow with interactive set to true, and it works fine, user is prompted to sign in with google account, I get redirect url in my extension's background script, parse access token from it and everything is fine until I need to logout this user and make it possible to sign with other account. When I try running chrome.identity.launchWebAuthFlow with interactive set to true again, nothing pops up, but redirect url is returned in background and access token is picked up for previously logged in user, so I'm unable to make my users switch account.

Is there any solution for this?

Upvotes: 8

Views: 2400

Answers (1)

MagnetPlant
MagnetPlant

Reputation: 196

I haven't used chrome.identity.launchWebAuthFlow, but I think your question is similar to "How do I log out of a chrome.identity oauth provider".

Among the answers:

As I said, I haven't used launchWebAuthFlow yet, but I wanted to help by showing you an already answered question

Upvotes: 8

Related Questions