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

SignInSecondFactor

The SignInSecondFactor type represents the second factor verification strategy that can be used in the sign-in process.

type SignInSecondFactor = | PhoneCodeFactor | TOTPFactor | BackupCodeFactor;
PropertyTypeDescription
strategystringThe strategy of the factor.
Supports the following values:
  • "phone_code"
  • "totp"
  • "backup_code"
phoneNumberIdstringThe ID of the phone number that a code will be sent to. Populated when the strategy is "phone_code".
safeIdentifierstringThe safe identifier of the factor.
Supports the following values:
  • "phoneNumber"

Populated when the strategy is "phone_code".
primarybooleanWhether the factor is the primary factor.
Populated when the strategy is "phone_code".

TOTPFactor

type TOTPFactor = { strategy: TOTPStrategy; };

BackupCodeFactor

type BackupCodeFactor = { strategy: BackupCodeStrategy; };

Last updated on March 26, 2024

What did you think of this content?

Clerk © 2024