Class: WebStorageKeyStore

WebStorageKeyStore(optsopt)

Keeps one DPoP key pair in Web Storage, sessionStorage by default. Storage holds strings, so the private key is a JWK and therefore extractable. It survives a reload and the round trip to the identity provider, and it is cleared when the tab closes. extractable is what DPoPKey.loadOrCreate reads when it has to generate a key this store can keep.

Constructor

new WebStorageKeyStore(optsopt)

Parameters:
Name Type Attributes Description
opts Object <optional>

(TypeScript: { storage?: Storage, key?: string })

Source:

Classes

WebStorageKeyStore

Methods

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

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

(async) set(value)

Parameters:
Name Type Description
value StoredKey

@returns {Promise}

Source: