@azure/msal-browser
Version:
Microsoft Authentication Library for js
34 lines • 1.61 kB
TypeScript
import type { AccountInfo, IPerformanceClient, Logger } from "@azure/msal-common/browser";
import type { IPlatformAuthHandler } from "../broker/nativeBroker/IPlatformAuthHandler.js";
import type { BrowserConfiguration } from "../config/Configuration.js";
import type { SilentRequest } from "./SilentRequest.js";
/**
* Request context used by flow-specific silent request preparers.
*/
export type SilentRequestPreparationInput = {
request: SilentRequest;
account: AccountInfo;
correlationId: string;
config: BrowserConfiguration;
};
/**
* Flow-independent inputs consumed by the in-flight request registry.
*/
export type PreparedSilentRequest = {
key: string;
request: SilentRequest;
account: AccountInfo;
};
/**
* Selects request preparation using the current account and broker availability.
*/
export declare function resolveSilentRequestPreparation(input: SilentRequestPreparationInput, platformAuthProvider: IPlatformAuthHandler | undefined, logger: Logger, performanceClient: IPerformanceClient): PreparedSilentRequest;
/**
* Preserves the standard web thumbprint and caller-owned request references.
*/
export declare function prepareWebSilentRequest({ request, account, correlationId, config, }: SilentRequestPreparationInput): PreparedSilentRequest;
/**
* Snapshots broker inputs and creates the extended key before acquisition begins.
*/
export declare function preparePlatformSilentRequest({ request, account, config, }: SilentRequestPreparationInput): PreparedSilentRequest;
//# sourceMappingURL=SilentRequestHelpers.d.ts.map