asposecellscloud
Version:
Aspose.Cells Cloud for Node.js to create, repair, merge, parse and convert excel files. Convert excel to PDF, JSON, XML, TSV, HTML and so on.
34 lines (33 loc) • 959 B
TypeScript
import request = require("request");
import { Configuration } from "./configuration";
/**
* Authentication logic for api calls
*/
export interface IAuthentication {
/**
* Apply authentication settings to header and query params.
*/
applyToRequest(requestOptions: request.Options, configuration: Configuration): void;
/**
* Handle 401 response.
*/
handle401response(configuration: Configuration): any;
}
/**
* Implements OAuth authentication
*/
export declare class OAuth implements IAuthentication {
private accessToken;
private refreshToken;
private getTime;
/**
* Apply authentication settings to header and query params.
*/
applyToRequest(requestOptions: request.Options, configuration: Configuration): Promise<void>;
/**
* Handle 401 response.
*/
handle401response(configuration: Configuration): Promise<void>;
private _requestToken;
private _refreshToken;
}