> For the complete documentation index, see [llms.txt](/llms.txt).

# useWeb3AuthUser

Hook to access the authenticated user's profile information. The returned `userInfo` object is reactive, it updates automatically when the session changes.

### Import[​](#import "Direct link to Import")

```
import { useWeb3AuthUser } from '@web3auth/react-native-sdk'

```

### Usage[​](#usage "Direct link to Usage")

```
import { useWeb3AuthUser } from '@web3auth/react-native-sdk'

function UserProfile() {
  const { userInfo } = useWeb3AuthUser()

  if (!userInfo) return null

  return (
    <View>
      <Text>Name: {userInfo.name}</Text>
      <Text>Email: {userInfo.email}</Text>
      {userInfo.profileImage && (
        <Image source={{ uri: userInfo.profileImage }} style={{ width: 48, height: 48 }} />
      )}
    </View>
  )
}

```

### Return type[​](#return-type "Direct link to Return type")

#### `userInfo`[​](#userinfo "Direct link to userinfo")

`UserInfo | null`

The authenticated user's profile object. `null` when no user is connected.

| Field             | Type    | Description                                                        |
| ----------------- | ------- | ------------------------------------------------------------------ |
| email             | string  | User's email address, if provided by the authentication provider.  |
| name              | string  | User's display name.                                               |
| profileImage      | string  | URL of the user's profile picture.                                 |
| aggregateVerifier | string  | Aggregate verifier identifier (grouped connection flows).          |
| verifier          | string  | Verifier identifier used for this authentication.                  |
| verifierId        | string  | The claim value used as the user's identifier within the verifier. |
| typeOfLogin       | string  | Authentication method that was used (for example, google, jwt).    |
| dappShare         | string  | Device share for MFA-enabled wallets.                              |
| oAuthIdToken      | string  | Raw OAuth id_token from the authentication provider.               |
| oAuthAccessToken  | string  | Raw OAuth access_token from the authentication provider.           |
| isMfaEnabled      | boolean | Whether MFA is currently enabled for this user.                    |
