Reference
Interface: NativeTokenStorage
Interface: NativeTokenStorage in @ticketlayer/live.
@ticketlayer/live / native / NativeTokenStorage
Defined in: native/storage.ts:16
Async key/value holder for the Live session token.
Methods#
get()#
get(): Promise<string | null>;Defined in: native/storage.ts:18
The stored token, or null when none is stored.
Returns#
Promise<string | null>
remove()#
remove(): Promise<void>;Defined in: native/storage.ts:22
Forget the token. Must not throw when nothing is stored.
Returns#
Promise<void>
set()#
set(token: string): Promise<void>;Defined in: native/storage.ts:20
Persist the token.
Parameters#
| Parameter | Type |
|---|---|
token | string |
Returns#
Promise<void>