UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

24 lines 909 B
import { WebResourceLike, ServiceClientCredentials } from '@azure/core-http'; /** * A credentials object that uses a token string and a authorzation scheme to authenticate. */ export declare class TokenCredentials implements ServiceClientCredentials { token: string; authorizationScheme: string; /** * Creates a new TokenCredentials object. * * @class * @param {string} token The token. * @param {string} [authorizationScheme] The authorization scheme. */ constructor(token: string, authorizationScheme?: string); /** * Signs a request with the Authentication header. * * @param {WebResourceLike} webResource The WebResourceLike to be signed. * @returns {Promise<WebResourceLike>} The signed request object. */ signRequest(webResource: WebResourceLike): Promise<WebResourceLike>; } //# sourceMappingURL=tokenCredentials.d.ts.map