@azure/msal-browser
Version:
Microsoft Authentication Library for js
17 lines • 912 B
TypeScript
import { Logger } from "@azure/msal-common/browser";
export declare const IFRAME_POLL_INTERVAL_MS = 50;
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
/**
* Monitors an iframe content window until it loads a URL with a known hash, or hits a specified timeout.
*
* @param iframe - The hidden iframe to monitor.
* @param timeout - Maximum time (ms) to wait for navigation before rejecting with
* `monitor_window_timeout`.
* @param logger - Logger instance.
* @param correlationId
* @param responseMode - `"query"` or `"fragment"` — determines whether to read
* `location.search` or `location.hash`. Any value other than `"query"` is
* treated as fragment.
*/
export declare function monitorIframeForHash(iframe: HTMLIFrameElement, timeout: number, logger: Logger, correlationId: string, responseMode: string): Promise<string>;
//# sourceMappingURL=IframeMonitor.d.ts.map