Documentation navigation

Auth

Enroll an MFA factor

POST/auth/factors

Enrolls a TOTP, phone, or WebAuthn factor for the current user.

Parameters

MFAEnrollParams
factorType'totp' | 'phone' | 'webauthn'
The factor type to enroll.
friendlyName?string
A user-facing name for the factor.
issuer?string
Issuer used for a TOTP factor.
phone?string
Required by the phone-factor overload.

Returns

idstring
type"totp" | "phone" | "webauthn"
friendly_name?string
phone?string