UNPKG

microsoft-speech-browser-sdk

Version:
25 lines (19 loc) 593 B
import { Promise } from "../../common/Exports"; export interface IAuthentication { Fetch(authFetchEventId: string): Promise<AuthInfo>; FetchOnExpiry(authFetchEventId: string): Promise<AuthInfo>; } export class AuthInfo { private headerName: string; private token: string; public constructor(headerName: string, token: string) { this.headerName = headerName; this.token = token; } public get HeaderName(): string { return this.headerName; } public get Token(): string { return this.token; } }