oops
This commit is contained in:
parent
df685c3edb
commit
1a1a56cf3f
|
@ -21,13 +21,8 @@ const reviewTasksDb = nano.db.use("review-tasks");
|
||||||
|
|
||||||
const auth = new google.auth.GoogleAuth({
|
const auth = new google.auth.GoogleAuth({
|
||||||
credentials: {
|
credentials: {
|
||||||
// IMPORTANT!! have to have key stored in Base64 because of the
|
private_key: env.lingdocsServiceAccountKey,
|
||||||
// weirdness of node handling spaces in the key (at least there was on AWS)
|
client_email: env.lingdocsServiceAccountEmail,
|
||||||
private_key: Buffer.from(
|
|
||||||
env.lingdocsServiceAccountEmail,
|
|
||||||
"base64"
|
|
||||||
).toString("ascii"),
|
|
||||||
client_email: env.lingdocsServiceAccountKey,
|
|
||||||
},
|
},
|
||||||
scopes: [
|
scopes: [
|
||||||
"https://www.googleapis.com/auth/spreadsheets",
|
"https://www.googleapis.com/auth/spreadsheets",
|
||||||
|
|
Loading…
Reference in New Issue