From 87c0fab1070bcbb79ca6bb8c92bcef6993402797 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Thu, 10 Aug 2023 12:25:03 +0100 Subject: [PATCH] chore: update max JWT age to 2 hours closes #2 --- lib/auth.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/auth.ts b/lib/auth.ts index 2f70a71..e1955cf 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -11,6 +11,9 @@ export const authOptions: AuthOptions = { "https://sso.revolt.chat/application/o/admin-panel", }), ], + jwt: { + maxAge: 2 * 60 * 60, // 2 hours + }, pages: { signIn: "/", },