28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
import { BaseClient } from "./BaseClient";
|
|
import { ClientConfiguration } from "../config/ClientConfiguration";
|
|
import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest";
|
|
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
import { CacheOutcome } from "../utils/Constants";
|
|
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
|
|
/** @internal */
|
|
export declare class SilentFlowClient extends BaseClient {
|
|
constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
|
|
/**
|
|
* Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew
|
|
* the given token and returns the renewed token
|
|
* @param request
|
|
*/
|
|
acquireToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
|
|
/**
|
|
* Retrieves token from cache or throws an error if it must be refreshed.
|
|
* @param request
|
|
*/
|
|
acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>;
|
|
private setCacheOutcome;
|
|
/**
|
|
* Helper function to build response object from the CacheRecord
|
|
* @param cacheRecord
|
|
*/
|
|
private generateResultFromCacheRecord;
|
|
}
|
|
//# sourceMappingURL=SilentFlowClient.d.ts.map
|