Documentation navigation

Auth

Challenge an MFA factor

POST/auth/factors/{factor_id}/challenge

Creates a challenge for an enrolled TOTP, phone, or WebAuthn factor.

Parameters

MFAChallengeParams
factorIdstring
The enrolled factor ID.
channel?'sms' | 'whatsapp'
Required by the phone-factor overload.
webauthn.rpId?string
Required by the WebAuthn overload.
webauthn.rpOrigins?string[]
Allowed origins for a WebAuthn challenge.

Returns

idstring
type"totp" | "phone" | "webauthn"
expires_atnumber