@azure/msal-browser
Version:
Microsoft Authentication Library for js
26 lines • 1.41 kB
TypeScript
import { LoggerOptions, IPerformanceClient, Logger, AuthenticationScheme } from "@azure/msal-common/browser";
import { BrowserConfiguration } from "../../config/Configuration.js";
import { IPlatformAuthHandler } from "./IPlatformAuthHandler.js";
/**
* Checks if the platform broker is available in the current environment.
* @param loggerOptions
* @param perfClient
* @returns
*/
export declare function isPlatformBrokerAvailable(loggerOptions?: LoggerOptions, perfClient?: IPerformanceClient, correlationId?: string): Promise<boolean>;
export declare function getPlatformAuthProvider(logger: Logger, performanceClient: IPerformanceClient, correlationId: string, nativeBrokerHandshakeTimeout?: number): Promise<IPlatformAuthHandler | undefined>;
/**
* Returns true if the DOM API support for platform auth is enabled in session storage
* @returns boolean
* @deprecated
*/
export declare function isDomEnabledForPlatformAuth(): boolean;
/**
* Returns boolean indicating whether or not the request should attempt to use native broker
* @param logger
* @param config
* @param platformAuthProvider
* @param authenticationScheme
*/
export declare function isPlatformAuthAllowed(config: BrowserConfiguration, logger: Logger, platformAuthProvider?: IPlatformAuthHandler, authenticationScheme?: AuthenticationScheme): boolean;
//# sourceMappingURL=PlatformAuthProvider.d.ts.map