I'm getting this weird error and I haven't seen it anywhere else. When I try to call chrome.identity.getAuthToken
, I get back undefined
(which means an error occurred) and a chrome.runtime.lastError
that says Oauth2: bad client id NON_NATIVE
. I have no idea what that means (I put my Oauth client id into the manifest.json
just like in the examples) and I haven't seen this error anywhere else.
(converted from comment to answer per request from another user)
When you got your client ID from the API console, did you pick "Installed application" as the application type? The term NON_NATIVE is not appearing in Chromium Code Search, which suggests it's a server error, which suggests it's telling you that you created the client ID incorrectly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With