问题
I followed https://developer.chrome.com/extensions/tut_oauth exactly step by step but I am stuck at
https://developer.chrome.com/extensions/tut_oauth#identity_permission
where after I execute my extension, instead of getting the token, I get the error:
Unchecked runtime.lastError while running identity.getAuthToken:
OAuth2 request failed: Service responded with error: 'bad request'
Please suggest what is the possible cause of this error.
回答1:
I think that's because the scope is empty. I was like you follow the article, but found the problem is from the scope area.
来源:https://stackoverflow.com/questions/51619276/chrome-extension-identity-oauth2-request-failed-service-responded-with-error