# Interface: MincaAuthConfig

Defined in: [packages/core/src/session/auth.ts:99](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L99)

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-appname"></a> `appName?` | `readonly` | `string` | What passkey prompts call this app. Default "Minca". | [packages/core/src/session/auth.ts:101](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L101) |
| <a id="property-browser"></a> `browser?` | `readonly` | `object` | Accounts kept in this browser, and their data. Defaults to IndexedDB; swap both for tests or for a host with no IndexedDB. | [packages/core/src/session/auth.ts:120](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L120) |
| `browser.accounts` | `readonly` | () => `Promise`\<[`AccountStore`](https://minca.dev/api/core/interfaces/AccountStore.md)\> | - | [packages/core/src/session/auth.ts:121](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L121) |
| `browser.stores` | `readonly` | (`account`) => [`StoreFactory`](https://minca.dev/api/core/type-aliases/StoreFactory.md) | - | [packages/core/src/session/auth.ts:122](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L122) |
| <a id="property-network"></a> `network?` | `readonly` | [`NodeNetworkConfig`](https://minca.dev/api/core/interfaces/NodeNetworkConfig.md) | Relays, always-on nodes and hosts the signed-in node connects to. Omit to stay offline. | [packages/core/src/session/auth.ts:103](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L103) |
| <a id="property-offerpod"></a> `offerPod?` | `readonly` | `boolean` | Whether a new account is offered a pod before it goes in (`pod`). Default true. Turn it off where the page closes once signed in, as when an app opened it to connect: the pod is only kept up to date while this page runs, so it is better offered where the person comes back. | [packages/core/src/session/auth.ts:137](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L137) |
| <a id="property-pairinglink"></a> `pairingLink?` | `readonly` | `string` | The page a phone-pairing QR opens. Default: this page. | [packages/core/src/session/auth.ts:111](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L111) |
| <a id="property-pairingtransport"></a> `pairingTransport?` | `readonly` | (`did`) => [`PeerTransport`](https://minca.dev/api/core/interfaces/PeerTransport.md) | How the two sides of a pairing reach each other, given a throwaway DID. Default: the relay. For tests, or a host with its own. | [packages/core/src/session/auth.ts:113](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L113) |
| <a id="property-rpid"></a> `rpId?` | `readonly` | `string` | The site passkeys belong to. Default: this page's hostname. | [packages/core/src/session/auth.ts:105](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L105) |
| <a id="property-signoutgracems"></a> `signOutGraceMs?` | `readonly` | `number` | How long signing out waits, at most, for a peer to take its revokes in. Default 5 s. | [packages/core/src/session/auth.ts:115](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L115) |
| <a id="property-storage"></a> `storage?` | `readonly` | [`KeyValueStore`](https://minca.dev/api/session/interfaces/KeyValueStore.md) \| `null` | Where small choices are remembered — which account, stay signed in. Default `localStorage`. | [packages/core/src/session/auth.ts:107](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L107) |
| <a id="property-storagekey"></a> `storageKey?` | `readonly` | `string` | Namespaces those choices, so two apps on one origin keep their own. Default "minca". | [packages/core/src/session/auth.ts:109](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L109) |
| <a id="property-usernames"></a> `usernames?` | `readonly` | `string` | Where a new account takes its username, as `minca.social`: creating one offers `<name>@<this>`, claimed in the background (`packages/core/docs/usernames.md`). Default: none offered. | [packages/core/src/session/auth.ts:143](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L143) |
| <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 once per sign-in; the worker ends when the node closes. Not with `browser.stores`, which a worker can't be handed. Default: the node runs on the page. | [packages/core/src/session/auth.ts:130](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L130) |
