diff --git a/src/lib/auth.ts b/src/lib/auth.ts index ad26b7f..a4f7a64 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -17,14 +17,8 @@ export const auth = betterAuth({ }, secret: process.env.BETTER_AUTH_SECRET, baseURL: process.env.BETTER_AUTH_URL || "http://localhost:3000", - trustedOrigins: [ - "http://dhg.lol:51193", - "http://localhost:3000", - "http://127.0.0.1:3000", - "http://0.0.0.0:3000", - // Parse comma-separated TRUSTED_ORIGINS environment variable - ...(process.env.TRUSTED_ORIGINS ? process.env.TRUSTED_ORIGINS.split(',').map((origin) => origin.trim()) : []), - ], + // Disable trusted origins validation + trustedOrigins: [], session: { cookieCache: { enabled: false, // Disable cookie cache to avoid session cache issues