> For the complete documentation index, see [llms.txt](https://docs.cremawork.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cremawork.com/v1.0/loggedin-user.md).

# Loggedin User

To get the data of logged in user wherever you need, simply write one line code i.e.<br>

```
const user = useAuthUser();
```

In the starter template, to get auth user, call useAuthUser hooks. it will return the current logged in user.

```
const [user, authType] = useAuthUser();
```

In the source, there are multiple authenticate methods like AWS, firebase, Auth0, and JWT-auth. then **authType** is used to check which logout method will call for logged in user.

You have to import useAuthUser from&#x20;

```
src/@crema/utility/AppHooks.js
```
