Package-level declarations

Types

Link copied to clipboard
@Serializable
data class PhoneNumber(val id: String, val phoneNumber: String, val verification: Verification? = null, val reservedForSecondFactor: Boolean = false, val defaultSecondFactor: Boolean = false, val createdAt: Long? = null, val updatedAt: Long? = null, val linkedTo: List<String>? = null, val backupCodes: List<String>? = null)

The PhoneNumber object is a model around a phone number entity.

Properties

Link copied to clipboard

Convenience function for telling whether or not the phone number is the primary one

Link copied to clipboard

Convenience function for telling whether or not the phone number is verified

Functions

Link copied to clipboard

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

Initiates the phone number verification process by sending a verification code via SMS.

Link copied to clipboard
suspend fun PhoneNumber.update(reservedForSecondFactor: Boolean? = null, defaultSecondFactor: Boolean? = null): ClerkResult<PhoneNumber, ClerkErrorResponse>

Updates the properties of this phone number.