jpillora / node-edit-google-spreadsheet

A simple API for editing Google Spreadsheets
304 stars 101 forks source link

Google OAuth Error: Error: failed to obtain an authentication token, request failed with HTTP code 401: invalid_client #93

Closed cloakedninjas closed 8 years ago

cloakedninjas commented 8 years ago

Getting this with an old(ish) project. Updated to latest npm version but no change. And I'm using a PEM key.

Any ideas?

cloakedninjas commented 8 years ago

Ok, found the problem. It's caused by trying to use OAuth authentication. Looks like Google have now deprecated this.

Switching to OAuth2, fixed it for me.

NB: Remember to copy get_oauth2_permission.js into your working directory and then execute it to get a refresh_token.

JawadQamar commented 8 years ago

how to get copy of get_oauth2_permission.js ??