InMemoryStorage
An in-memory TokenStorage, used as a fallback when no persistent storage is available (SSR, or a non-browser runtime). Sessions stored here do not survive a reload.
Implements
Constructors
Constructor
new InMemoryStorage(): InMemoryStorage;
Returns
InMemoryStorage
Methods
getItem()
getItem(key): string;
Read a value.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
string
Implementation of
removeItem()
removeItem(key): void;
Remove a value.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
void
Implementation of
setItem()
setItem(key, value): void;
Write a value.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | string |
Returns
void