> ## Documentation Index
> Fetch the complete documentation index at: https://minestorev3-api.ci.batlify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User

> Returns information about the user (after user is logged in)

## Example of usage

```ts theme={null}
import { user } from '@batlify/mscms-api'

async function userData() {
    await user.getUser()
        .then((result) => {

            // Returns user data or message "Unauthorized - Need to be logged in"
            console.log("User data", result)
        })
        .catch((e) => {

            // Getting user data failed
            console.log("Oops! Something went wrong :/", e)
        })
}
```
