Package-level declarations
Types
Link copied to clipboard
@Serializable
The PhoneNumber object is a model around a phone number entity.
Properties
Functions
Link copied to clipboard
suspend fun PhoneNumber.attemptVerification(code: String): ClerkResult<PhoneNumber, ClerkErrorResponse>
Attempts to verify this phone number using the provided verification code.
Link copied to clipboard
Deletes this phone number from the user's account.
Link copied to clipboard
Sets this phone number as the default for multi-factor authentication.
Link copied to clipboard
Initiates the phone number verification process by sending a verification code via SMS.
Link copied to clipboard
Sends a verification code to this phone number via SMS.
Link copied to clipboard
suspend fun PhoneNumber.setReservedForSecondFactor(reservedForSecondFactor: Boolean): ClerkResult<PhoneNumber, ClerkErrorResponse>
Sets whether this phone number is reserved for multi-factor authentication.
Link copied to clipboard
suspend fun PhoneNumber.update(reservedForSecondFactor: Boolean? = null, defaultSecondFactor: Boolean? = null): ClerkResult<PhoneNumber, ClerkErrorResponse>
Updates the properties of this phone number.
Link copied to clipboard
Verifies this phone number using the provided verification code.