UNPKG

mpp-sdk

Version:

SDK to talk to the Memento Payments Platform

14 lines (13 loc) 588 B
import { AxiosInstance } from "axios"; import { MPPConfig } from "../index.js"; import { AuthToken, AuthTokenInput, SecretInput, MPPResult } from "../types/index.js"; export default class TokensEndpoint { protected config: MPPConfig; protected http: AxiosInstance; constructor(config: MPPConfig, http: AxiosInstance); getCurrentDeviceId(): Promise<string | null>; hasAuthToken(): Promise<boolean>; create(data: AuthTokenInput): Promise<MPPResult<AuthToken>>; secret(id: string, data: SecretInput): Promise<MPPResult<AuthToken>>; delete(): Promise<void>; }