Skip to content

Commit b6f5154

Browse files
Merge pull request #186 from Speedrunyourknowledge/develop
test: cookies on server
2 parents 48c17fb + c0d1e4e commit b6f5154

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

calc-backend/src/lib/auth.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ export const auth = betterAuth({
1313
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
1414
}
1515
},
16+
session: {
17+
cookieCache: {
18+
enabled: true,
19+
maxAge: 60 * 60 // Cache duration in seconds
20+
}
21+
},
22+
advanced: {
23+
cookiePrefix: "calcvis"
24+
},
1625
onAPIError: {
1726
throw: true,
1827
onError: (e) =>{

0 commit comments

Comments
 (0)