> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hexclave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useUser

> React hook to access the current authenticated user.

This standalone React hook is an alias for `useHexclaveApp().useUser()`. It only exists for convenience; it does not have any additional functionality.

For more information, please refer to the [documentation for `hexclaveClientApp.useUser()`](/sdk/objects/hexclave-app#stackclientappuseuseroptions).

## Usage

```jsx theme={null}
import { useUser } from "@hexclave/next";  // replace `next` with the correct framework SDK package

function MyComponent() {
  const user = useUser();

  if (!user) {
    return <div>Not signed in</div>;
  }

  return <div>Hello, {user.displayName}</div>;
}
```

## Related

* [StackApp object reference](/sdk/objects/hexclave-app)
* [User type reference](/sdk/types/user)
