We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f48e7 commit e84f96cCopy full SHA for e84f96c
2 files changed
calc-backend/src/lib/auth.ts
@@ -16,12 +16,6 @@ export const auth = betterAuth({
16
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
17
}
18
},
19
- session: {
20
- cookieCache: {
21
- enabled: true,
22
- maxAge: 60 * 60 // Cache duration in seconds
23
- }
24
- },
25
advanced: {
26
cookiePrefix: "calcvis",
27
crossSubDomainCookies: {
calc-frontend/src/lib/auth-client.ts
@@ -1,7 +1,8 @@
1
import { createAuthClient } from "better-auth/react"
2
3
export const authClient = createAuthClient({
4
- baseURL: import.meta.env.VITE_SERVER_URL || "http://localhost:3000" // the base url of your auth server
+ baseURL: import.meta.env.VITE_SERVER_URL || "http://localhost:3000", // the base url of your auth server
5
+ redirect:false
6
})
7
8
export type Session = typeof authClient.$Infer.Session;
0 commit comments