mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
测试增加邮件认证-修复
This commit is contained in:
parent
c536ea7d48
commit
054d3b78e0
10
lib/auth.ts
10
lib/auth.ts
@ -76,11 +76,11 @@ export const authOptions: NextAuthOptions = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
// pages: {
|
pages: {
|
||||||
// signIn: `/login`,
|
signIn: `/login`,
|
||||||
// // verifyRequest: `/login`,
|
// verifyRequest: `/login`,
|
||||||
// error: "/login", // Error code passed in query string as ?error=
|
error: "/login", // Error code passed in query string as ?error=
|
||||||
// },
|
},
|
||||||
adapter: PrismaAdapter(prisma),
|
adapter: PrismaAdapter(prisma),
|
||||||
session: { strategy: "jwt", maxAge: 3 * 24 * 60 * 60 },
|
session: { strategy: "jwt", maxAge: 3 * 24 * 60 * 60 },
|
||||||
cookies: {
|
cookies: {
|
||||||
|
Loading…
Reference in New Issue
Block a user