1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00

Code review update, removing sheets scope from authentication

This commit is contained in:
Dean 2022-07-04 13:37:56 +01:00
parent 180af9b30b
commit d7a572d9ee

View file

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