Skip to main content

Configuration

Default configuration keys for @quik/mfa. See the generated Config Keys and Environment Variables tables for the full list.

  • mfa.enabled — enables MFA flows globally. Defaults to false.
  • mfa.challenge.timeToLiveMs — challenge lifetime in milliseconds. Defaults to 300000.
  • mfa.challenge.maxAttempts — maximum verification attempts per challenge. Defaults to 5.
  • mfa.code.length — number of digits generated for code-based factors. Defaults to 6.
  • mfa.email.subject — subject used by the default email factor.
  • mfa.totp.issuer — issuer label used to build TOTP enrollment URIs. Defaults to Quik.
  • mfa.totp.digits — expected TOTP digit count. Defaults to 6.
  • mfa.totp.stepSeconds — TOTP time step in seconds. Defaults to 30.
  • mfa.totp.window — accepted drift window, in steps, around current time. Defaults to 1.
  • mfa.totp.qrCode.sizePixels — inline QR SVG size in pixels. Defaults to 256.
  • mfa.totp.qrCode.quietZoneModules — margin around the QR matrix, in modules. Defaults to 4.