ApiSessionInterfaces
Interface: MincaConnectionConfig
Defined in: packages/core/src/session/connection.ts:53
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
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 |
home | readonly | string | The account home to suggest — the person can use their own instead | packages/core/src/session/connection.ts:55 |
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 |
keys.forget | public | (name) => Promise<void> | - | packages/core/src/session/connection.ts:73 |
keys.get | public | (name) => Promise<AppKey> | - | packages/core/src/session/connection.ts:72 |
network? | readonly | NodeNetworkConfig | Relays and always-on nodes the node connects to. Omit to stay offline. | packages/core/src/session/connection.ts:59 |
request | readonly | Omit<ConnectRequest, "v" | "audience" | "proof"> | What to ask for | packages/core/src/session/connection.ts:57 |
storage? | readonly | KeyValueStore | null | Where the grants are kept. Default localStorage. | packages/core/src/session/connection.ts:61 |
stores? | readonly | (grant) => StoreFactory | Where the node keeps its data. Default: this site's IndexedDB. | packages/core/src/session/connection.ts:63 |
worker? | readonly | () => WorkerLike | 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 |