I followed the public tutorial here for creating a chrome extension calling Google Identity api to get the Oauth2 token. It is not working. In the Chrome extension loaded into the browser in developer mode, when I click the button in the home page for the extension, it just gets an error
Unchecked runtime.lastError while running identity.getAuthToken: OAuth2 request failed: Service responded with error: 'bad request' at HTMLButtonElement. (chrome-extension://dgpoakddenlpjocgikkadcklmpfmadlh/oauth.js:3:23)
This is most annoying and unhelpful. Any help is much appreciated.