Skip to main content

Environment Variables

Boolean flags default to false when unset.

VariableTypeDefaultConfig KeysDescriptionSource
MFA_CHALLENGE_MAX_ATTEMPTSint5mfa.challenge.maxAttemptsConfiguration value from environment. Config key: `mfa.challenge.maxAttempts`.mfa.ts
MFA_CHALLENGE_TIME_TO_LIVE_MSint300000mfa.challenge.timeToLiveMsConfiguration value from environment. Config key: `mfa.challenge.timeToLiveMs`.mfa.ts
MFA_CODE_LENGTHint6mfa.code.lengthConfiguration value from environment. Config key: `mfa.code.length`.mfa.ts
MFA_EMAIL_SUBJECTstring"Your authentication code"mfa.email.subjectConfiguration value from environment. Config key: `mfa.email.subject`.mfa.ts
MFA_ENABLEDflagmfa.enabledcomputedmfa.ts
MFA_TOTP_DIGITSint6mfa.totp.digitsConfiguration value from environment. Config key: `mfa.totp.digits`.mfa.ts
MFA_TOTP_ISSUERstring"Quik"mfa.totp.issuerConfiguration value from environment. Config key: `mfa.totp.issuer`.mfa.ts
MFA_TOTP_QR_CODE_QUIET_ZONE_MODULESint4mfa.totp.qrCode.quietZoneModulesConfiguration value from environment. Config key: `mfa.totp.qrCode.quietZoneModules`.mfa.ts
MFA_TOTP_QR_CODE_SIZE_PIXELSint256mfa.totp.qrCode.sizePixelsConfiguration value from environment. Config key: `mfa.totp.qrCode.sizePixels`.mfa.ts
MFA_TOTP_STEP_SECONDSint30mfa.totp.stepSecondsConfiguration value from environment. Config key: `mfa.totp.stepSeconds`.mfa.ts
MFA_TOTP_WINDOWint1mfa.totp.windowConfiguration value from environment. Config key: `mfa.totp.window`.mfa.ts