fix: add secret and baseURL to Better Auth config

This commit is contained in:
Lorentz 2026-02-16 12:48:26 +00:00
parent 992a7fe72b
commit 17ef200f6a

View file

@ -14,6 +14,8 @@ export const auth = betterAuth({
expiresIn: 60 * 60 * 24 * 7, // 7 days
updateAge: 60 * 60 * 24,
},
secret: process.env.BETTER_AUTH_SECRET || 'fallback-secret-for-development',
baseURL: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
});
/**