1. Docs
  2. API Reference
  3. MfaWebAuthnEnrollVerifyResponseDto

MfaWebAuthnEnrollVerifyResponseDto

Example

JSON
{
  "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",
    "webauthn_rp_id": "acme.com"
  },
  "recovery_codes": [
    "ABCD-EFGH-IJKL-MNOP",
    "QRST-UVWX-YZ23-4567",
    "..."
  ],
  "recovery_codes_generation": 0
}

Properties

3 properties 1 required

factor MfaFactorResponseDto Required
recovery_codes array of string Optional

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.

ExampleABCD-EFGH-IJKL-MNOPQRST-UVWX-YZ23-4567...nullable
recovery_codes_generation number Optional

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

nullable
Was this page helpful?

Tell us how we can improve this guide.