UNPKG

whodis-react-storage-browser

Version:

React hooks and components for secure, best practices authentication in seconds

10 lines (9 loc) 309 B
import { EventStream } from 'event-stream-pubsub'; export interface WhodisAuthTokenStorage { get: () => Promise<string | null>; set: (token: string | null) => Promise<void>; on: { set: Omit<EventStream<undefined>, 'publish'>; get: Omit<EventStream<undefined>, 'publish'>; }; }