auth drive
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user