From 60599a2c671b678b730100b7fd963d3e8fa57e76 Mon Sep 17 00:00:00 2001 From: Anthony Vargas <90121982+Speedrunyourknowledge@users.noreply.github.com> Date: Fri, 18 Apr 2025 01:32:42 -0400 Subject: [PATCH] test: cookies on server --- calc-backend/src/lib/auth.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/calc-backend/src/lib/auth.ts b/calc-backend/src/lib/auth.ts index 18a6535..48b18e6 100644 --- a/calc-backend/src/lib/auth.ts +++ b/calc-backend/src/lib/auth.ts @@ -13,6 +13,15 @@ export const auth = betterAuth({ clientSecret: process.env.GOOGLE_CLIENT_SECRET as string, } }, + session: { + cookieCache: { + enabled: true, + maxAge: 60 * 60 // Cache duration in seconds + } + }, + advanced: { + cookiePrefix: "calcvis" + }, onAPIError: { throw: true, onError: (e) =>{