Skip to content

Documentation / expo / UseUpdateEmailInterface

Interface: UseUpdateEmailInterface ​

Properties ​

sendCode ​

sendCode: (input) => Promise<void>

Prepare an email address update by sending a one time code to a new email address.

Parameters ​

• input: SendEmailCodeInput

Returns ​

Promise<void>

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

See ​

updateEmail for submitting the one time code to complete the email update.


updateEmail ​

updateEmail: (input) => Promise<PrivyUser>

Update a user profile with a new email address by submitting a one time code.

Parameters ​

• input: UpdateEmailInput

Returns ​

Promise<PrivyUser>

a promise that resolves with the updated user object.

See ​

sendCode for sending the one time code first.