import BrowserKeyStore from 'token-io/src/security/engines/BrowserKeyStore.js'
BrowserKeyStore
Static Method Summary
Static Public Methods | ||
public static |
Get the ID of the most recently active member. |
|
public static |
setActiveMemberId(memberId: string) Keep track of the ID of the most recently active member. |
Static Private Methods | ||
private static |
async _getObjectStore(storeName: string, mode: string): Promise<IDBObjectStore> Retrieves an object store from the db |
|
private static |
Opens an instance of IndexedDB |
Method Summary
Public Methods | ||
public |
async clearAllKeys(): Promise<any> Clears all keys in object store |
|
public |
Look up a key by memberId and keyId. |
|
public |
async getByLevel(memberId: string, level: string): Promise Look up a key by memberId and level. |
|
public |
Return list of member's keys. |
|
public |
Store a member's key pair. |
Static Public Methods
public static setActiveMemberId(memberId: string) source
Keep track of the ID of the most recently active member.
Params:
Name | Type | Attribute | Description |
memberId | string | ID of member |
Static Private Methods
Public Methods
public async getById(memberId: string, keyId: string): Promise source
Look up a key by memberId and keyId.
public async getByLevel(memberId: string, level: string): Promise source
Look up a key by memberId and level.