diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 68864f7..8440c47 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -12,6 +12,14 @@ export const authOptions: NextAuthOptions = { GoogleProvider({ clientId: process.env.GOOGLE_CLIENT_ID!, clientSecret: process.env.GOOGLE_CLIENT_SECRET!, + authorization: { + params: { + scope: "openid email profile https://www.googleapis.com/auth/drive.file", + prompt: "consent", + access_type: "offline", + response_type: "code", + }, + }, }), ], callbacks: {