From 054d3b78e05a82fb7ad1f5d9da731dc0efc284d3 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 22 Mar 2024 17:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A2=9E=E5=8A=A0=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E8=AE=A4=E8=AF=81-=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/auth.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index d82856797..37dc4c525 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -76,11 +76,11 @@ export const authOptions: NextAuthOptions = { } }) ], - // pages: { - // signIn: `/login`, - // // verifyRequest: `/login`, - // error: "/login", // Error code passed in query string as ?error= - // }, + pages: { + signIn: `/login`, + // verifyRequest: `/login`, + error: "/login", // Error code passed in query string as ?error= + }, adapter: PrismaAdapter(prisma), session: { strategy: "jwt", maxAge: 3 * 24 * 60 * 60 }, cookies: {