UNPKG

@turnkey/core

Version:

A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.

18 lines 907 B
import { type StorageBase } from "@types"; import type { Session } from "@turnkey/sdk-types"; export declare class MobileStorageManager implements StorageBase { private static ALL_SESSION_KEYS; private static ACTIVE_SESSION_KEY; getStorageValue(sessionKey: string): Promise<any>; setStorageValue(sessionKey: string, storageValue: any): Promise<void>; setActiveSessionKey(sessionKey: string): Promise<void>; removeStorageValue(sessionKey: string): Promise<void>; storeSession(session: string, sessionKey?: string): Promise<void>; getSession(sessionKey?: string): Promise<Session | undefined>; getActiveSessionKey(): Promise<string | undefined>; getActiveSession(): Promise<Session | undefined>; listSessionKeys(): Promise<string[]>; clearSession(sessionKey: string): Promise<void>; clearAllSessions(): Promise<void>; } //# sourceMappingURL=storage.d.ts.map