Skip to content

Commit e84f96c

Browse files
fix: try clearing cookie cache
1 parent f7f48e7 commit e84f96c

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

calc-backend/src/lib/auth.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ export const auth = betterAuth({
1616
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
1717
}
1818
},
19-
session: {
20-
cookieCache: {
21-
enabled: true,
22-
maxAge: 60 * 60 // Cache duration in seconds
23-
}
24-
},
2519
advanced: {
2620
cookiePrefix: "calcvis",
2721
crossSubDomainCookies: {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { createAuthClient } from "better-auth/react"
22

33
export const authClient = createAuthClient({
4-
baseURL: import.meta.env.VITE_SERVER_URL || "http://localhost:3000" // the base url of your auth server
4+
baseURL: import.meta.env.VITE_SERVER_URL || "http://localhost:3000", // the base url of your auth server
5+
redirect:false
56
})
67

78
export type Session = typeof authClient.$Infer.Session;

0 commit comments

Comments
 (0)