import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
import { MiniTip } from '@freesewing/react/components/Mini'
<DocusaurusDoc>
The **useAccount** hook provides access to a FreeSewing user's account data in local storage.
Use this hook to tap into the account state that is stored in the browser.
<MiniTip>To load the account data, or update it, refer to the [useBackend](//reference/packages/react/hooks/usebackend/) hook instead.</MiniTip>
## Example
```js
import { useAccount } from '@freesewing/react/hooks/useAccount'
const MyComponent = () => {
const {
account,
admin,
clearAdmin,
control,
impersonate,
seenuser,
setAccount,
setSeenUser,
setToken,
signOut,
stopImpersonating,
token
} = useAccount()
// ...
}
```
## Return value
Calling the hook returns an object with the following properties:
- [account](#account)
- [admin](#admin)
- [clearAdmin](#clearadmin)
- [control](#control)
- [impersonate](#impersonate)
- [seenUser](#seenuser)
- [setAccount](#setaccount)
- [setSeenUser](#setseenuser)
- [setToken](#settoken)
- [signOut](#signout)
- [stopImpersonating](#stopimpersonating)
- [token](#token)
### account
Holds the account data available in the browser. Below is an example:
```js
{
id: 1,
bio: "Hi, my name is Joost 👋\n\n - 🫡 I am the [benevolent dictator](https://en.wikipedia.org/wiki/Benevolent_dictator_for_life) here at FreeSewing\n - 🧵 I make clothes and shoes\n - 👕 I design sewing patterns\n - 🧑💻 I write code\n - 🐘 I am [@joost@freesewing.social](https://freesewing.social/@joost) on Mastodon\n - 🦋 I am [@joost.at](https://bsky.app/profile/joost.at) on Bluesky\n - 📫 My email is joost AT joost DOT at\n - 🙊 I'm an introvert\n - 🦈 My pronouns are he/him or they/them\n - 👻 Joost sounds like Ghost, in case you're wondering\n",