UNPKG

liveperson-functions-client

Version:

JavaScript client for LivePerson Functions.

25 lines (24 loc) 710 B
import { GetCsdsEntry } from '../types/tooling'; interface Options { accountId: string; clientId: string; clientSecret: string; getCsdsEntry: GetCsdsEntry; expirationBufferMinutes?: number; } export declare class AppJwtAuthentication { private accountId; private clientId; private clientSecret; private getCsdsEntry; private expirationBufferMinutes; private currentJwt; private currentAccessToken; constructor({ accountId, clientId, clientSecret, getCsdsEntry, expirationBufferMinutes, }: Options); getHeader(): Promise<string>; private getAccessToken; private isCurrentJwtExpiring; private isJwtExpired; private getOptions; } export {};