UNPKG

tickethead-sdk

Version:

SDK for the Tickethead API

19 lines 699 B
import { Jwt } from '..'; import { AuthService } from '../auth'; import { RefreshableJwt } from '../auth/types'; import { ICredential } from './credential'; /** * This class is used to authenticate with an api key. * This method is currently only used on the NFT service. * Be aware that, consequently, it will not work on other services. */ export declare class ApiKeyCredentials implements ICredential { readonly type: "ApiKey"; private jwt?; constructor(apiKey: string); isRefreshable(): boolean; getToken(): Jwt | RefreshableJwt; authorize(_authService: AuthService): Promise<Jwt>; refreshToken(): Promise<Jwt>; } //# sourceMappingURL=api-key-credentials.d.ts.map