Skip to main content

foundation-comms.session.getitem

Home > @genesislcap/foundation-comms > Session > getItem

Session.getItem() method

Returns the value of the specified item in the specified storage.

Signature:

getItem(key: string | UserInfoKeys, storage: StorageType): string;

Parameters

Parameter

Type

Description

key

string | UserInfoKeys

The key to get.

storage

StorageType

The storage type to use.

Returns:

string

  • The value of the specified item.