parro-it / electron-google-oauth

Google api access token in electron
MIT License
56 stars 18 forks source link

Error: invalid_client: The OAuth client was not found. #16

Closed cgj6hb closed 6 years ago

cgj6hb commented 6 years ago

I'm trying to run this example. I've created my CLIENTID and CLIENTSECRET environment variables and verified that they are correct, and do not have any leading or trailing whitespace. I've also run npm install. However when I run the app, I get a 401 error with the description from above. What does this mean?

I've looked all over the place, and it seems like the normal issue that causes this is either whitespace in the environment variables, or a lack of a product name and email in the Google cloud console. I have checked and double checked all of those things. Thanks!

cgj6hb commented 6 years ago

Odd. I fixed the issue by hardcoding the CLIENTID and CLIENTSECRET values right into package.json, instead of using environment variables. It works now though.