Class: IndexedDBKeyStore

IndexedDBKeyStore(optsopt)

Keeps one DPoP key pair in IndexedDB. CryptoKeys are stored as-is (structured clone), so a non-extractable private key survives page loads without ever being exported.

Constructor

new IndexedDBKeyStore(optsopt)

Parameters:
Name Type Attributes Description
opts Object <optional>

(TypeScript: { database?: string, key?: string })

Source:

Classes

IndexedDBKeyStore

Methods

delete() → {Promise.<void>}

Source:
Returns:
Type
Promise.<void>

get() → {Promise.<(StoredKey|undefined)>}

Source:
Returns:
Type
Promise.<(StoredKey|undefined)>

set(value)

Parameters:
Name Type Description
value StoredKey

@returns {Promise}

Source: