Environment Variables
Boolean flags default to false when unset.
| Variable | Type | Default | Config Keys | Description | Source |
|---|---|---|---|---|---|
MFA_CHALLENGE_MAX_ATTEMPTS | int | 5 | mfa.challenge.maxAttempts | Configuration value from environment. Config key: `mfa.challenge.maxAttempts`. | mfa.ts |
MFA_CHALLENGE_TIME_TO_LIVE_MS | int | 300000 | mfa.challenge.timeToLiveMs | Configuration value from environment. Config key: `mfa.challenge.timeToLiveMs`. | mfa.ts |
MFA_CODE_LENGTH | int | 6 | mfa.code.length | Configuration value from environment. Config key: `mfa.code.length`. | mfa.ts |
MFA_EMAIL_SUBJECT | string | "Your authentication code" | mfa.email.subject | Configuration value from environment. Config key: `mfa.email.subject`. | mfa.ts |
MFA_ENABLED | flag | — | mfa.enabled | computed | mfa.ts |
MFA_TOTP_DIGITS | int | 6 | mfa.totp.digits | Configuration value from environment. Config key: `mfa.totp.digits`. | mfa.ts |
MFA_TOTP_ISSUER | string | "Quik" | mfa.totp.issuer | Configuration value from environment. Config key: `mfa.totp.issuer`. | mfa.ts |
MFA_TOTP_QR_CODE_QUIET_ZONE_MODULES | int | 4 | mfa.totp.qrCode.quietZoneModules | Configuration value from environment. Config key: `mfa.totp.qrCode.quietZoneModules`. | mfa.ts |
MFA_TOTP_QR_CODE_SIZE_PIXELS | int | 256 | mfa.totp.qrCode.sizePixels | Configuration value from environment. Config key: `mfa.totp.qrCode.sizePixels`. | mfa.ts |
MFA_TOTP_STEP_SECONDS | int | 30 | mfa.totp.stepSeconds | Configuration value from environment. Config key: `mfa.totp.stepSeconds`. | mfa.ts |
MFA_TOTP_WINDOW | int | 1 | mfa.totp.window | Configuration value from environment. Config key: `mfa.totp.window`. | mfa.ts |