# getUserInfo()

## Syntax

```javascript
getUserInfor(token)
```

After login, you can use this method to get user information.

## Parameters

<table><thead><tr><th width="109">Name</th><th width="121">Type</th><th width="102">Required</th><th>Description</th></tr></thead><tbody><tr><td>token</td><td>string</td><td>Yes</td><td>The authentication token response from Eueno API when login. After login success, this token was saved in local storage with the name "eueno-token".</td></tr></tbody></table>

## Example

{% code lineNumbers="true" %}

```javascript
import { getUserInfo } from "@eueno/lib-browser";

const getData = async () => {
   try {
     const toke = window.localStorage.getItem(“eueno-token”);
     const response = await getUserInfo(token);
     console.log(response);
   } catch (error) {
     console.log(error);
   }
 };
```

{% endcode %}

Response of example:

```json
"data": 
{
        "name_tag": "no_name",
        "balance_usd": 0,
        "avatar": null,
        "status": "ACTIVE",
        "_id": "63a9120afaeb20de89e9ac85",
        "account": "0xf069…87f15",
        "memo": "350648…6224",
        "createAt": "2022-12-26T03:16:26.903Z",
        "pack_info": 
        {
            "_id": "63a3cba5d8fd244d867c70d1",
            "price_to_usd": 10,
            "discount": 0,
            "project_size": 102400,
            "description": "payment",
            "type": "PAYMENT"
        }
}
```
