Docs
Live demo
POST/api/v2/auth/mfa/login/webauthn/enrollments/{id}/confirm

Store the attested credential, issue the session cookies and return the recovery codes once.

Parameters

Path1 required of 1
idstringpathrequired

Pending enrollment identifier returned by the start call.

Request body application/json · MFAConfirmWebAuthnRequest

Required2 of 2 fields
credentialmap of string → anyrequired

PublicKeyCredential serialized with toJSON().

namestringrequired
min length 1 · max length 64

Responses

200

Session issued

MFALoginCompleteResponse · 5 fields
redirectstringrequired

Sanitized post-login path.

methodstringrequired

Factor that completed sign-in. Empty when the enrollment offer was skipped.

totpwebauthnrecovery_code
recovery_codes_remaininginteger · int64

Unused recovery codes left. Present only when a recovery code was used.

One enrolled second factor.

5 fields
idstring · uuidrequired
typestringrequired

Factor kind.

totpwebauthn
namestringrequired
created_atstring · date-timerequired
last_used_atstring · date-time
recovery_codesarray of string

Present once when sign-in enrollment created the first factor.

409

Conflict

429

Rate limited (request.rate_limited). Contended verification returns details.reason=mfa_verification_busy. Retry-After is the delay in seconds. Enrollment failures do not affect the identity lockout.

503

Service Unavailable

Common errors: 400 401 413 500 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close