microsoft-speech-browser-sdk
Version:
Microsoft Speech SDK for browsers
25 lines (19 loc) • 593 B
text/typescript
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;
}
}