refreshUser
Refreshes the current user’s data from the server. This function fetches the latest authenticated user information from the backend and updates the local user state. Use this when you need to ensure the user’s profile data is synchronized with the server, such as after making changes to the user’s account information.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<SdkUser> - A promise that resolves to the authenticated user object with updated data.