Reputation: 61
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.
Upvotes: 6
Views: 1822
Reputation: 41
Got the same issue, solved it by creating new credential with type Chrome App. i mistakenly created Credential with type web, so i recreated new one.
Upvotes: 1
Reputation: 4672
(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.
Upvotes: 3