I have built a chrome extension. Using chrome.identity.getAuth(), I am able to get token as described here https://developer.chrome.com/apps/app_identity. This token seems to be
I was able to solve this by choosing a web application type instead of a chrome app when generating the client id on google console.
Choose a web application when you are generating the client key on google
Javascript origins: https://<extensionid>.chromiumapp.org
redirect url https://<extensionid>.chromiumapp.org/provider_cb
extract the email page by reading the html from the contentscript.
Pass a message with this email address to the background page.
Follow the same as described in the github launchWebAuthFlow. [https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/github-auth]
login_hint
with the email address.