fix: provide default secret for better-auth configuration
Some checks failed
Build Docker Image / build (push) Failing after 41s

This commit is contained in:
2026-03-08 16:08:40 +01:00
parent 0e2e7e8756
commit 444ffc4fba

View File

@@ -7,7 +7,7 @@ import { db } from '$lib/server/db';
export const auth = betterAuth({
baseURL: env.ORIGIN,
secret: env.BETTER_AUTH_SECRET,
secret: env.BETTER_AUTH_SECRET ?? "default_secret_change_me",
database: drizzleAdapter(db, { provider: 'pg' }),
emailAndPassword: { enabled: true },
plugins: [sveltekitCookies(getRequestEvent)] // make sure this is the last plugin in the array