PrepareSecondFactorParams

@Serializable
data class PrepareSecondFactorParams(val strategy: String = PHONE_CODE, val phoneNumberId: String? = null, val emailAddressId: String? = null)

A parameter object for preparing the second factor verification.

This class is used to specify the strategy and related details for preparing a second factor authentication method. For example, if you want to use a one-time code sent to the user's phone, you would set the strategy to "phone_code".

See also

Constructors

Link copied to clipboard
constructor(strategy: String = PHONE_CODE, phoneNumberId: String? = null, emailAddressId: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "email_address_id")
val emailAddressId: String?

The ID of the email address to use for email_code verification. This is typically retrieved from the supportedSecondFactors list on the SignIn object.

Link copied to clipboard
@SerialName(value = "phone_number_id")
val phoneNumberId: String?

The ID of the phone number to use for phone_code verification. This is typically retrieved from the supportedSecondFactors list on the SignIn object.

Link copied to clipboard

The strategy used for second factor verification.