auth drive

This commit is contained in:
2026-03-12 23:29:00 -05:00
parent 8b4a18e29d
commit e6f4f6c092

View File

@@ -12,6 +12,14 @@ export const authOptions: NextAuthOptions = {
GoogleProvider({ GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!, clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!, 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: { callbacks: {