Skip to content

Documentation / expo / UseUpdatePhoneInterface

Interface: UseUpdatePhoneInterface ​

Properties ​

sendCode ​

sendCode: (input) => Promise<void>

Prepare a phone number update by sending a one time code to a new phone number.

Parameters ​

• input: SendPhoneCodeInput

Returns ​

Promise<void>

a promise that resolves if the code was sent successfully, and rejects otherwise

See ​

updatePhone for submitting the one time code to complete the phone update.


updatePhone ​

updatePhone: (input) => Promise<PrivyUser>

Update a user profile with a new phone number by submitting a one time code.

Parameters ​

• input: UpdatePhoneInput

Returns ​

Promise<PrivyUser>

a promise that resolves with the updated user object.

See ​

sendCode for sending the one time code first.