Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome App - Identity API - Bad client ID NON_NATIVE

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.

like image 508
Mister F Avatar asked Aug 17 '13 00:08

Mister F


1 Answers

(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.

like image 198
sowbug Avatar answered Oct 08 '22 01:10

sowbug