AttemptVerificationParams

sealed interface AttemptVerificationParams

Defines the possible strategies for attempting verification during the sign-up process. This sealed interface encapsulates the different types of verification attempts, such as email or phone code verification.

Use these parameters when calling attemptVerification to complete a verification that was previously initiated with prepareVerification.

Inheritors

Types

Link copied to clipboard
data class EmailCode(val code: String, val strategy: String = AuthStrategy.EMAIL_CODE) : SignUp.AttemptVerificationParams

Attempts verification using a code sent to the user's email address.

Link copied to clipboard
data class PhoneCode(val code: String, val strategy: String = AuthStrategy.PHONE_CODE) : SignUp.AttemptVerificationParams

Attempts verification using a code sent to the user's phone number.

Properties

Link copied to clipboard
abstract val code: String

The verification code provided by the user. This code should match the one sent via email or SMS during the preparation phase.

Link copied to clipboard
abstract val strategy: String

The strategy used for verification (e.g., email_code or phone_code). This must match the strategy used when preparing the verification.