minca

Function: browserWriterKeys()

function browserWriterKeys(name, provider?): WriterKeySource;

Defined in: packages/storage/src/indexeddb/writer-keys.ts:47

Lasting keys in this origin's IndexedDB, one database per slot, locked with Web Locks across tabs and workers. A slot keeps the seed its key is derived from, not a CryptoKey, which a shared worker in WebKit can't read back.

Gives null, so the node makes a key for one run, where there is no IndexedDB or no Web Locks: a key two nodes might hold at once is worse than no lasting key.

Parameters

ParameterTypeDescription
namestringScopes the slots, e.g. the account's store prefix, so signing out deletes the keys with the rest.
provider?CryptoProvider-

Returns

WriterKeySource

On this page