UNPKG

aladinnetwork-blockstack

Version:

The Aladin Javascript library for authentication, identity, and storage.

34 lines (32 loc) 1.02 kB
import { SessionData, SessionOptions } from './sessionData'; /** * An abstract class representing the SessionDataStore interface. */ export declare class SessionDataStore { constructor(sessionOptions?: SessionOptions); getSessionData(): SessionData; setSessionData(session: SessionData): boolean; deleteSessionData(): boolean; } /** * Stores session data in the instance of this class. * @ignore */ export declare class InstanceDataStore extends SessionDataStore { sessionData?: SessionData; constructor(sessionOptions?: SessionOptions); getSessionData(): SessionData; setSessionData(session: SessionData): boolean; deleteSessionData(): boolean; } /** * Stores session data in browser a localStorage entry. * @ignore */ export declare class LocalStorageStore extends SessionDataStore { key: string; constructor(sessionOptions?: SessionOptions); getSessionData(): SessionData; setSessionData(session: SessionData): boolean; deleteSessionData(): boolean; }