From c634e2ff6686f3c58e4aa9ffb7f180ded96c1415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=8C=EC=9A=B8=EC=B9=98=ED=82=A8?= <90738604+soulchicken@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:51:02 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20next-session=20expire=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/api/auth/[...nextauth].ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/api/auth/[...nextauth].ts b/src/pages/api/auth/[...nextauth].ts index 616a8b1..e5a18ef 100644 --- a/src/pages/api/auth/[...nextauth].ts +++ b/src/pages/api/auth/[...nextauth].ts @@ -67,6 +67,7 @@ export const authOptions: NextAuthOptions = { ], session: { strategy: 'jwt', + maxAge: 7 * 24 * 60 * 60, // 7 days }, jwt: { secret: process.env.NEXT_PUBLIC_SECRET_KEY,