Browse Source

Code review update, removing sheets scope from authentication

pull/6535/head
Dean 4 years ago
parent
commit
d7a572d9ee
  1. 2
      packages/worker/src/api/controllers/global/auth.ts

2
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)

Loading…
Cancel
Save