From e6f4f6c092df8a8e5ce2e2354b3e0608fc021aa5 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 12 Mar 2026 23:29:00 -0500 Subject: [PATCH] auth drive --- src/lib/auth.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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: {