Skip to main content

BrowserLocalStorageStore class

Implementation of VeramoJsonStore that uses browser localStorage to store data.

Signature:

export declare class BrowserLocalStorageStore implements VeramoJsonStore

Implements: VeramoJsonStore

Example

const dataStore = BrowserLocalStorageStore.fromLocalStorage('veramo-state')
const plugin = new DataStoreJson(dataStore)

Properties

PropertyModifiersTypeDescription
claimsRecord<string, ClaimTableEntry>
credentialsRecord<string, CredentialTableEntry>
didsRecord<string, IIdentifier>
keysRecord<string, ManagedKeyInfo>
messagesRecord<string, IMessage>
notifyUpdateDiffCallback
presentationsRecord<string, PresentationTableEntry>
privateKeysRecord<string, ManagedPrivateKey>

Methods

MethodModifiersDescription
fromLocalStorage(localStorageKey)static