Package: react-wallet-kit
Overview
Updates the user’s name.- This function updates the user’s display name.
- If a userId is provided, it updates the name for that specific user; otherwise, it uses the current session’s userId.
- Automatically ensures an active session exists before making the request.
- Optionally allows stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).
- Handles session management and error reporting for the update flow.
Parameters
Response
A successful response returns the following fields:A promise that resolves to the userId of the updated user.