foundation-comms.session.setlocalstorageitem
Home > @genesislcap/foundation-comms > Session > setLocalStorageItem
Session.setLocalStorageItem() method
Sets an item in the local storage with the specified key and value.
Signature:
setLocalStorageItem(key: string | UserInfoKeys, value: string): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
string | UserInfoKeys |
The key to set. |
|
value |
string |
The value to set. |
Returns:
void