Chrome.identity.getAuthToken returns the error "bad client id: {0}"

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?

+4
source share
2

- .

-, , , , , , .

https://developer.chrome.com/apps/app_identity#client_id , Chrome, Chrome-.

" API" " OAuth 2.0... ". , .

.

? -://your application id

chrome-extension://gfmehiepojbflifceoplblionpfclfhf/

+1

All Articles