From 01dcd55487e2fad61ec3e0daaf48bf1397a2a940 Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Thu, 21 Sep 2023 23:40:43 +0530 Subject: [PATCH] fix: typos in Google Auth environment variables (#841) --- packages/lib/services/googleSheet.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib/services/googleSheet.ts b/packages/lib/services/googleSheet.ts index 94ef9f60ca..78bd1fefa6 100644 --- a/packages/lib/services/googleSheet.ts +++ b/packages/lib/services/googleSheet.ts @@ -111,9 +111,9 @@ export async function writeData(credentials: TGoogleCredential, spreadsheetId: s } const authorize = (credentials: any) => { - const client_id = process.env.GOOGLE_APP_CLIENT_ID; - const client_secret = process.env.GOOGLE_APP_CLIENT_SECRET; - const redirect_uri = process.env.GOOGLE_APP_REDIRECT_URL; + const client_id = process.env.GOOGLE_SHEETS_CLIENT_ID; + const client_secret = process.env.GOOGLE_SHEETS_CLIENT_SECRET; + const redirect_uri = process.env.GOOGLE_SHEETS_REDIRECT_URL; const oAuth2Client = new google.auth.OAuth2(client_id, client_secret, redirect_uri); oAuth2Client.setCredentials(credentials);