# Interface: MincaConnectionConfig

Defined in: [packages/core/src/session/connection.ts:53](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L53)

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-account"></a> `account?` | `readonly` | (`accounts`) => `string` \| `null` \| `undefined` | Which connected account to act for on starting, such as the one the address names. Default: the one used last here, else the first. | [packages/core/src/session/connection.ts:79](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L79) |
| <a id="property-home"></a> `home` | `readonly` | `string` | The account home to suggest — the person can use their own instead | [packages/core/src/session/connection.ts:55](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L55) |
| <a id="property-keys"></a> `keys?` | `readonly` | `object` | Where the app's keys are kept, one per account, by name. Default: this site's IndexedDB (`appKey`). | [packages/core/src/session/connection.ts:71](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L71) |
| `keys.forget` | `public` | (`name`) => `Promise`\<`void`\> | - | [packages/core/src/session/connection.ts:73](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L73) |
| `keys.get` | `public` | (`name`) => `Promise`\<[`AppKey`](https://minca.dev/api/session/interfaces/AppKey.md)\> | - | [packages/core/src/session/connection.ts:72](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L72) |
| <a id="property-network"></a> `network?` | `readonly` | [`NodeNetworkConfig`](https://minca.dev/api/core/interfaces/NodeNetworkConfig.md) | Relays and always-on nodes the node connects to. Omit to stay offline. | [packages/core/src/session/connection.ts:59](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L59) |
| <a id="property-request"></a> `request` | `readonly` | `Omit`\<[`ConnectRequest`](https://minca.dev/api/session/interfaces/ConnectRequest.md), `"v"` \| `"audience"` \| `"proof"`\> | What to ask for | [packages/core/src/session/connection.ts:57](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L57) |
| <a id="property-storage"></a> `storage?` | `readonly` | [`KeyValueStore`](https://minca.dev/api/session/interfaces/KeyValueStore.md) \| `null` | Where the grants are kept. Default `localStorage`. | [packages/core/src/session/connection.ts:61](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L61) |
| <a id="property-stores"></a> `stores?` | `readonly` | (`grant`) => [`StoreFactory`](https://minca.dev/api/core/type-aliases/StoreFactory.md) | Where the node keeps its data. Default: this site's IndexedDB. | [packages/core/src/session/connection.ts:63](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L63) |
| <a id="property-worker"></a> `worker?` | `readonly` | () => [`WorkerLike`](https://minca.dev/api/core/interfaces/WorkerLike.md) | Runs the node in a worker, off the page's main thread (`@minca/core/node-worker`). Called each time the node starts; the worker ends when it closes. Not with `stores`. | [packages/core/src/session/connection.ts:69](https://github.com/leifriksheim/minca/blob/main/core/src/session/connection.ts#L69) |
