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