setReservedForSecondFactor

Sets whether this phone number is reserved for multi-factor authentication.

This function is a convenience wrapper around update that specifically toggles whether the phone number is reserved for 2FA. When a phone number is reserved for 2FA, it can only be used for authentication challenges and not as a primary authentication method.

Return

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

Parameters

reserved

true to reserve the phone number for 2FA, false otherwise.