From 756077148a4e8d1fc1ca3a0ebf2dba502c70a8cd Mon Sep 17 00:00:00 2001 From: "Jack W." Date: Thu, 7 Mar 2024 21:12:37 -0500 Subject: [PATCH] feat: cookie persistence :funnythumbsup: --- src/server/routes/api/v0/authRoutes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/routes/api/v0/authRoutes.ts b/src/server/routes/api/v0/authRoutes.ts index 6b55271..1b326f3 100644 --- a/src/server/routes/api/v0/authRoutes.ts +++ b/src/server/routes/api/v0/authRoutes.ts @@ -64,7 +64,8 @@ export default function (files: Files) { path: "/", sameSite: "Strict", secure: true, - httpOnly: true + httpOnly: true, + maxAge: 3 * 24 * 60 * 60 * 1000, }) return ctx.text("") })