auth: env-gated email/password (debug the token exchange headlessly)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user