UNPKG

bam-ticketing-sdk

Version:

SDK for B.A.M Ticketing API

18 lines 698 B
import { Jwt } from '..'; import { AuthService } from '../auth'; import { RefreshableJwt } from '../auth/types'; import { ICredential, CredentialType } 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: CredentialType.ApiKey; private jwt?; constructor(apiKey: string); getToken(): Jwt | RefreshableJwt; authorize(_authService: AuthService): Promise<Jwt>; refreshToken(): Promise<Jwt>; } //# sourceMappingURL=api-key-credentials.d.ts.map