minca

Interface: MincaAuthConfig

Defined in: packages/auth/src/auth.ts:103

Properties

PropertyModifierTypeDescriptionDefined in
appName?readonlystringWhat passkey prompts call this app. Default "Minca".packages/auth/src/auth.ts:105
browser?readonlyobjectAccounts kept in this browser, and their data. Defaults to IndexedDB; swap both for tests or for a host with no IndexedDB.packages/auth/src/auth.ts:124
browser.accountsreadonly() => Promise<AccountStore>-packages/auth/src/auth.ts:125
browser.storesreadonly(account) => StoreFactory-packages/auth/src/auth.ts:126
network?readonlyNodeNetworkConfigRelays, always-on nodes and hosts the signed-in node connects to. Omit to stay offline.packages/auth/src/auth.ts:107
offerPod?readonlybooleanWhether 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/auth/src/auth.ts:141
pairingLink?readonlystringThe page a phone-pairing QR opens. Default: this page.packages/auth/src/auth.ts:115
pairingTransport?readonly(did) => PeerTransportHow 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/auth/src/auth.ts:117
rpId?readonlystringThe site passkeys belong to. Default: this page's hostname.packages/auth/src/auth.ts:109
signOutGraceMs?readonlynumberHow long signing out waits, at most, for a peer to take its revokes in. Default 5 s.packages/auth/src/auth.ts:119
storage?readonly| KeyValueStore | nullWhere small choices are remembered — which account, stay signed in. Default localStorage.packages/auth/src/auth.ts:111
storageKey?readonlystringNamespaces those choices, so two apps on one origin keep their own. Default "minca".packages/auth/src/auth.ts:113
usernames?readonlystringWhere 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/auth/src/auth.ts:147
worker?readonly() => WorkerLikeRuns the node in a worker, off the page's main thread (@minca/session/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/auth/src/auth.ts:134

On this page