UNPKG

mpp-sdk

Version:

SDK to talk to the Memento Payments Platform

15 lines (14 loc) 481 B
import { Storage } from "./"; import { AuthToken } from "../types"; /** * This class is for testing purposes only. Please read into how to * securely store your auth tokens. */ export declare class LocalStorage implements Storage { private localStorageKey; private cache; constructor(localStorageKey?: string); storeAuthToken(authToken: AuthToken | null): Promise<void>; clearAuthToken(): Promise<void>; retrieveAuthToken(): Promise<AuthToken | null>; }