I try to use chrome.identity.getAuthTokento get a token, but every time I try this error, it appears:
OAuth2 error: the service responded with an error: "bad client id: {0}"
I have no idea why this is happening. The client ID that I installed in manifest.json is exactly the same as in the Google Developers Console, and also the correct one scopes:
oauth2: {
"client_id": "NUMBERS-NUMBERS&LETTERS.apps.googleusercontent.com",
"scopes": ["https://www.googleapis.com/auth/SOME_SERVICE"]
}
The extension is in the web store, and I do not understand why it still gives a bad customer identifier error.
What can cause this error? What am I missing here?
source
share