Class: IndexedDBTokenStore

IndexedDBTokenStore(optsopt)

Tokens in IndexedDB, shared by every tab of this origin and kept until deleted. This is the cache an AccountManager uses for all the accounts signed in in this browser. As with Web Storage, script in the page can read it: pair it with DPoP so the stored tokens are useless without the non-extractable key.

Constructor

new IndexedDBTokenStore(optsopt)

Parameters:
Name Type Attributes Description
opts Object <optional>

(TypeScript: { database?: string })

Source:

Classes

IndexedDBTokenStore

Methods

(async) delete(key)

Parameters:
Name Type Description
key string
Source:

get(key)

Parameters:
Name Type Description
key string

@returns {Promise<StoredTokens|undefined>}

Source:

(async) set(key)

Parameters:
Name Type Description
key string

@param {StoredTokens} value

Source: