# useWeb3AuthUser

> @web3auth/modal/vue Composable useWeb3AuthUser | Embedded Wallets

Composable to fetch and manage the current Web3Auth user information in Vue.

:::info

Please note that this composable doesn't work for external wallet logins. It only works for social login embedded wallets.

:::

### Import

```ts

```

### Usage

```html
<script setup lang="ts">

  const { userInfo, loading, error, isMFAEnabled, getUserInfo } = useWeb3AuthUser()
</script>

<template>
  Loading user info...
  Error: {{ error.message }}
  No user info available.
  
    <pre>{{ JSON.stringify(userInfo, null, 2) }}</pre>
    MFA Enabled: {{ isMFAEnabled ? "Yes" : "No" }}
    <button @click="getUserInfo">Refresh User Info</button>
  
</template>
```

### Return type

```ts

```

#### `loading`

`boolean`

Whether the user info fetching process is in progress.

#### `error`

`Web3AuthError | null`

Error that occurred during the user info fetching process.

#### `userInfo`

`Partial<UserInfo> | null`

The current user's information, or null if not available.

#### `isMFAEnabled`

`boolean`

Whether Multi-Factor Authentication (MFA) is enabled for the user.

#### `getUserInfo`

`() => Promise<Partial<UserInfo> | null>`

Function to fetch the latest user information from Web3Auth.
