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

# Get user info

Use the `useWeb3AuthUser` hook to access the authenticated user's profile. The `userInfo` object is reactive, it updates automatically when the session changes.

## Import

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

```

## Usage

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

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

  if (!userInfo) return null

  return (
    <View>
      {userInfo.profileImage && (
        <Image
          source={{ uri: userInfo.profileImage }}
          style={{ width: 64, height: 64, borderRadius: 32 }}
        />
      )}
      <Text>Name: {userInfo.name}</Text>
      <Text>Email: {userInfo.email}</Text>
      <Text>Login method: {userInfo.typeOfLogin}</Text>
      <Text>MFA enabled: {userInfo.isMfaEnabled ? 'Yes' : 'No'}</Text>
    </View>
  )
}

```

## Return value fields

| Field               | Type      | Description                                                                           |
| ------------------- | --------- | ------------------------------------------------------------------------------------- |
| `name`              | `string`  | User's display name from the identity provider.                                       |
| `email`             | `string`  | User's email address (if provided by the identity provider).                          |
| `profileImage`      | `string`  | URL of the user's profile image.                                                      |
| `verifier`          | `string`  | The verifier (connection) used for authentication.                                    |
| `verifierId`        | `string`  | The value of the claim used as the user identifier.                                   |
| `aggregateVerifier` | `string`  | The grouped connection ID if a grouped connection was used.                           |
| `typeOfLogin`       | `string`  | Authentication method (for example, `google`, `jwt`).                                 |
| `dappShare`         | `string`  | Device share for MFA-enabled wallets. Store this in secure storage for future logins. |
| `oAuthIdToken`      | `string`  | Raw `id_token` from the OAuth provider.                                               |
| `oAuthAccessToken`  | `string`  | Raw `access_token` from the OAuth provider.                                           |
| `isMfaEnabled`      | `boolean` | Whether MFA is currently enabled for this account.                                    |

## Related

- [useWeb3AuthUser hook reference](/embedded-wallets/sdk/react-native/hooks/useWeb3AuthUser/)
