Auth
Enroll an MFA factor
POST
/auth/factorsEnrolls a TOTP, phone, or WebAuthn factor for the current user.
Parameters
MFAEnrollParamsfactorType'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
idstringtype"totp" | "phone" | "webauthn"friendly_name?stringtotp?TotpObjectphone?string