# Function: useAuth()

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

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

The sign-in flow and its state, for screens that manage the account —
`auth.signOut()`, `auth.addPasskey()`, `state.entry`.

## Returns

`object`

### auth

```ts
auth: MincaAuth;
```

### state

```ts
state: AuthState;
```

## Throws

Outside a `MincaProvider` given `auth`
