1. Docs
  2. API Reference
  3. MfaWebAuthnEnrollVerifyResponseDto

The MfaWebAuthnEnrollVerifyResponseDto object

Example

{
  "factor": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "totp",
    "label": "iPhone 15",
    "enrolled_at": "2026-04-20T12:00:00.000Z",
    "last_used_at": "2026-04-20T12:00:00.000Z"
  },
  "recovery_codes": [
    "ABCD-EFGH-IJKL-MNOP",
    "QRST-UVWX-YZ23-4567",
    "..."
  ],
  "recovery_codes_generation": 0
}

Properties

  • factorMfaFactorResponseDto*
  • recovery_codesstring[]

    Ten freshly-minted single-use recovery codes — **only present on the first factor enrollment**. Subsequent enrollments return `null` here because the prior batch is still valid; the user already saw it the first time around.

  • recovery_codes_generationnumber

    Generation number of the active batch — `null` when no codes were issued from this enrollment (subsequent factor).