Skip to Content
You are viewing a beta version of Clerk Docs
Visit the latest docs
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

PhoneNumber second factor

These are all methods on the PhoneNumber class that allow you configure the configuration of a phone number as a second factor for multi-factor authentication (MFA).

makeDefaultSecondFactor()

Marks this phone number as the default second factor for multi-factor authentication(2FA). A user can have exactly one default second factor.

function makeDefaultSecondFactor(): Promise<PhoneNumber>;

setReservedForSecondFactor()

Marks this phone number as reserved for multi-factor authentication (2FA) or not.

function setReservedForSecondFactor(params: SetReservedForSecondFactorParams): Promise<PhoneNumber>;

SetReservedForSecondFactorParams

NameTypeDescription
reservedbooleanPass true to mark this phone number as reserved for 2FA, or false to disable 2FA for this phone number.

Last updated on October 5, 2023

What did you think of this content?

Clerk © 2024