# Function: connectToHome()

```ts
function connectToHome(options): Promise<Grant>;
```

Defined in: [packages/core/src/session/connect.ts:376](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L376)

Opens the home and asks for access. Call it from a click — browsers only
allow a popup that a person asked for.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | [`ConnectOptions`](https://minca.dev/api/session/interfaces/ConnectOptions.md) |

## Returns

`Promise`\<[`Grant`](https://minca.dev/api/session/interfaces/Grant.md)\>

The grant, checked: signed by the account, made out to this app's key

## Throws

When the popup is blocked, closed, denied, or the answer does not check out
