Reference:Chrome/APIs/identity

The identity API is a JavaScript API for Chrome. It is currently only supported by the beta and dev channels, but will be moving to stable within the next couple of months.

The API requires the use of the identity permission, and can be used to get OAuth2 access tokens.