Skip to content

TokenStorage

Defined in: types.ts:8

Pluggable token persistence. Sync-or-async so localStorage (browser), a plain in-memory Map (Node.js), and async stores (React Native AsyncStorage) all satisfy the interface without wrappers.

getItem(key): string | Promise<string | null> | null

Defined in: types.ts:9

string

string | Promise<string | null> | null


removeItem(key): void | Promise<void>

Defined in: types.ts:11

string

void | Promise<void>


setItem(key, value): void | Promise<void>

Defined in: types.ts:10

string

string

void | Promise<void>