Kysoql
API referenceInterfaces

StorageLike

Generated API reference for StorageLike in @kysoql/auth.

@kysoql/auth / StorageLike

Subset of the Web Storage API required by the local-storage token store.

Methods

getItem()

getItem(key): string | null;

Reads a value from the backing Web Storage implementation.

Parameters

ParameterType
keystring

Returns

string | null


setItem()

setItem(key, value): void;

Writes a value to the backing Web Storage implementation.

Parameters

ParameterType
keystring
valuestring

Returns

void


removeItem()

removeItem(key): void;

Removes a value from the backing Web Storage implementation.

Parameters

ParameterType
keystring

Returns

void

On this page