I use chrome.identity to log in to a third-party oauth provider in the chrome extension. It works great for login when I use launchWebAuthFlow . I am presented with a third-party login screen and redirected back to my application after the signin stream.
However, I cannot find a way to enable the logout function in my extension. There seems to be no function to clear the cached registered id. The next time launchWebAuthFlow is called, it will automatically log in as the first user and will not prompt me to log in again.
Is there a way to clear the registered state of the chrome.identity plugin?
google-chrome-extension oauth
infomofo
source share