UNPKG

bam-ticketing-sdk

Version:

SDK for B.A.M Ticketing API

17 lines 701 B
import { Jwt } from '../auth/types'; import { AuthService } from '../auth'; import { RefreshableJwt } from '..'; import { ICredential, CredentialType } from './credential'; /** * This class is used for restoring the authorization */ export declare class JwtCredentials implements ICredential { private jwt; readonly type: CredentialType.Jwt; constructor(jwt: Jwt | RefreshableJwt); getToken(): Jwt | RefreshableJwt; authorize(authService: AuthService, organizer?: string): Promise<Jwt | RefreshableJwt>; refreshToken(authService: AuthService, organizer?: string): Promise<Jwt | RefreshableJwt>; private hasOrganizerInToken; } //# sourceMappingURL=jwt-credentials.d.ts.map