UNPKG

@bixi/auth

Version:
16 lines (15 loc) 495 B
import { ITokenModel } from '../token/interface'; import { IStore } from './interface'; /** * `localStorage` storage, **not lost after closing the browser**. * * ```ts * { provide: BIXI_STORE_TOKEN, useClass: LocalStorageStore } * ``` */ export declare class LocalStorageStore implements IStore { get(key: string): ITokenModel; set(key: string, value: ITokenModel | null): boolean; remove(key: string): void; } export declare function BIXI_STORE_TOKEN_LOCAL_FACTORY(): IStore;