Skip to main content

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)
PropertiesTypeDescription
keystring: name of the key to get the value from
Additional properties for advanced use cases
PropertiesTypeDescription
secureboolean: decrypt the cookie (defaults to true)
storagestring: localStorage, sessionStorage, cookie, any (defaults to any)