getItem
getItem(key: string,storage: string,secure: boolean): Promise<unknown>
get a value of a key from the specified storage
if the storage is set to any, try all storage
Properties
(Mandatory properties are in bold)| Properties | Type | Description |
|---|---|---|
| key | string | : name of the key to get the value from |
Additional properties for advanced use cases
| Properties | Type | Description |
|---|---|---|
| secure | boolean | : decrypt the cookie (defaults to true) |
| storage | string | : localStorage, sessionStorage, cookie, any (defaults to any) |