# Function: useAccount()

```ts
function useAccount(): object;
```

Defined in: [packages/react/src/context.ts:124](https://github.com/leifriksheim/minca/blob/main/react/src/context.ts#L124)

The account this page acts for — signed in here, or connected through a
home: its identity (what `root` and `createdBy` on a record name) and name.

## Returns

`object`

### did

```ts
did: string;
```

### name

```ts
name: string;
```

## Throws

Before sign-in or connecting
