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

# Get user info

The `getUserInfo` method returns details about the user, including sign-in type, whether multi-factor authentication (MFA) is enabled, profile image, and name.

This method throws an error if no user session exists.

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

```
let web3AuthUserInfo = try web3Auth.getUserInfo()

```

## Example response[​](#example-response "Direct link to Example response")

```
{
  "userInfo": {
    "email": "w3a-heroes@web3auth.com",
    "name": "Web3Auth Heroes",
    "profileImage": "https://lh3.googleusercontent.com/a/Ajjjsdsmdjmnm...",
    "authConnectionId": "torus",
    "userId": "w3a-heroes@web3auth.com",
    "authConnection": "google",
    "groupedAuthConnectionId": "w3a-google-sapphire",
    "dappShare": "", // 24 words of seed phrase will be sent only incase of custom auth connections
    "idToken": "<jwtToken issued by Web3Auth>",
    "oAuthIdToken": "<jwtToken issued by OAuth Provider>", // will be sent only incase of custom auth connections
    "oAuthAccessToken": "<accessToken issued by OAuth Provider>", // will be sent only incase of custom auth connections
    "isMfaEnabled": false // Returns whether the user has enabled MFA or not
  }
}

```
