<!-- llms.txt: https://workos.com/llms.txt -->
<!-- feedback.md: https://workos.com/docs/feedback.md -->

# User Profile Widget

import * as userProfile from "./user-profile.props";
import { PropsTableHydrator } from "../../../components/props-table-hydrator";

![User Profile Widget screenshot](https://images.workoscdn.com/images/790e97bb-0875-4ca7-8ff4-c01dafce77f4.png?auto=format\&fit=clip\&q=50)

The `<UserProfile />` widget allows users to view and manage their personal information. With this widget, users can:

- View their profile picture and connected OAuth accounts
- Edit their display name
- Change their email address, with a verification code sent to the new address

No special permissions are required to use this widget.

:::code-group

```js language="js" title="Widget Token" tab="js-1"
import { UserProfile, WorkOsWidgets } from '@workos-inc/widgets';

/**
 * @param {string} authToken - A widget token that was fetched in your backend. See the
 * "Tokens" section of this guide for details on how to generate the token
 */
export function ProfilePage({ authToken }) {
  return (
    <WorkOsWidgets>
      <UserProfile authToken={authToken} />
    </WorkOsWidgets>
  );
}
```

```js language="js" title="Access Token" tab="js-2"
import { useAuth } from '@workos-inc/authkit-react';
import { UserProfile, WorkOsWidgets } from '@workos-inc/widgets';

export function ProfilePage() {
  const { isLoading, user, getAccessToken } = useAuth();
  if (isLoading) {
    return '...';
  }
  if (!user) {
    return 'Logged in user is required';
  }

  return (
    <WorkOsWidgets>
      <UserProfile authToken={getAccessToken} />
    </WorkOsWidgets>
  );
}
```

:::

## API Reference
