Search code examples
javascriptgoogle-chrome-extensionoauth-2.0google-account

Event for Chrome Google account logout or Google account user switch


Is there an event or listener that fires when a user logs his Google account out of Chrome (or switches from account)?

When this happens I want to change my Chrome Extension default_icon (from green to red).


Solution

  • "Fired when signin state changes for an account on the user's profile."

    https://developer.chrome.com/extensions/identity#event-onSignInChanged