auth: env-gated email/password (debug the token exchange headlessly)
build / test (push) Successful in 7s
build / build (push) Successful in 8s

This commit is contained in:
2026-07-06 21:09:46 -04:00
parent 63a9553868
commit 46679865e3
+3
View File
@@ -52,6 +52,9 @@ export const auth = betterAuth({
logger: { level: (process.env.LOG_LEVEL as "debug" | "info") ?? "info" },
trustedOrigins: (process.env.TRUSTED_ORIGINS ?? "").split(",").filter(Boolean),
database: pool,
// Temporary, env-gated: lets us mint a session headlessly to debug the OAuth
// token exchange without a browser. Off unless DEBUG_EMAIL_PASSWORD=true.
emailAndPassword: { enabled: process.env.DEBUG_EMAIL_PASSWORD === "true" },
socialProviders,
plugins: [
// oauth-provider looks up the jwt plugin (for JWKS-verifiable access tokens)