From 4c46b058ca57c4b9d43c5236ee47d4271cada3d4 Mon Sep 17 00:00:00 2001 From: Qin Guan Date: Sun, 23 Jul 2023 12:01:01 +0800 Subject: [PATCH] fix: ah --- server/trpc/context.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/trpc/context.ts b/server/trpc/context.ts index 0466826..cf59d65 100644 --- a/server/trpc/context.ts +++ b/server/trpc/context.ts @@ -9,6 +9,7 @@ export async function createContext(_event: H3Event) { const config: SessionConfig = { name: useRuntimeConfig().sessionName, password: useRuntimeConfig().sessionSecret, + maxAge: 60 * 60 * 24 * 31, } const session = await useSession(_event, config)