Updates the user’s email address.Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-amir-tx-status-webhooks.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- This function updates the user’s email address and, if provided, verifies it using a verification token (typically from an OTP flow).
- If a userId is provided, it updates the email for that specific user; otherwise, it uses the current session’s userId.
- If a verificationToken is not provided, the email will be updated but will not be marked as verified.
- Automatically ensures an active session exists before making the request.
- Handles session management and error reporting for both update and verification flows.
Package: core
Defined in: clients/core.ts:3421
A promise that resolves to the userId of the updated user.