I am building a chrome extension for gmail using InboxSDK and i need to authenticate users with google to use gmail API.
There is built in functionality to authenticate user with google using chrome.identity.getAuthToken, but it uses chrome user to do authentication by default.
Documentation specifies that getAuthToken function can optionally take AccountInfo as an argument and that it will determine whose token should be returned.
AccountInfo has only one property, id, but i am not sure where and how to retrieve that id given i have email of user i want to authenticate.
Here is a link to getAuthToken documentation.