“OAuth2 not granted or revoked” when trying to evaluate free trial in Chrome extension
问题 I'm attempting to offer a free trial period for my Chrome extension and have been following the Chrome documentation about how this can be accomplished. When my extension loads, though, the background script is logging the following error to the console: Unchecked runtime.lastError while running identity.getAuthToken: OAuth2 not granted or revoked. The console is pointing at the call to chrome.identity.getAuthToken as the culprit. Here's the relevant code in my background script: var CWS