From d7a572d9ee219a3909cdbe46fdee182e4a54d33c Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 4 Jul 2022 13:37:56 +0100 Subject: [PATCH] Code review update, removing sheets scope from authentication --- packages/worker/src/api/controllers/global/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/api/controllers/global/auth.ts b/packages/worker/src/api/controllers/global/auth.ts index 97b6c4c02f..dc96554cb2 100644 --- a/packages/worker/src/api/controllers/global/auth.ts +++ b/packages/worker/src/api/controllers/global/auth.ts @@ -170,7 +170,7 @@ export const googlePreAuth = async (ctx: any, next: any) => { const strategy = await google.strategyFactory(config, callbackUrl, users.save) return passport.authenticate(strategy, { - scope: ["profile", "email", "https://www.googleapis.com/auth/spreadsheets"], + scope: ["profile", "email"], accessType: "offline", prompt: "consent", })(ctx, next)