microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
10 lines (9 loc) • 522 B
TypeScript
import { AuthInfo, IAuthentication } from "./IAuthentication.js";
export declare class CognitiveTokenAuthentication implements IAuthentication {
private static privTokenPrefix;
private privFetchCallback;
private privFetchOnExpiryCallback;
constructor(fetchCallback: (authFetchEventId: string) => Promise<string>, fetchOnExpiryCallback: (authFetchEventId: string) => Promise<string>);
fetch(authFetchEventId: string): Promise<AuthInfo>;
fetchOnExpiry(authFetchEventId: string): Promise<AuthInfo>;
}