update

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

Updates the properties of this phone number.

Allows modification of second factor authentication settings for this phone number.

Return

A ClerkResult containing the updated PhoneNumber on success, or a ClerkErrorResponse on failure

Parameters

reservedForSecondFactor

Whether this phone number should be reserved for second factor authentication

defaultSecondFactor

Whether this phone number should be the default second factor method