Files
cosmos-explorer/src/redirectBridge.ts
sindhuba 339ba4f295 Upgrade MSAL library version (#2454)
* Reapply "MSAL browser migration changes"

This reverts commit 60a65efb7b.

* Fix redirect URI for localhost

* Fix URI for logout and other minor fix

* Remove unnecessary files

* Fix tests

* Fix tests

* Run npm format

* Address comments

* Address comment
2026-04-08 10:40:06 -07:00

16 lines
594 B
TypeScript

/**
* MSAL COOP Redirect Bridge
*
* This page handles the authentication response from the Identity Provider (IdP)
* and broadcasts it to the main application frame. Required for msal-browser v5+
* to securely handle auth responses when the IdP sets Cross-Origin-Opener-Policy headers.
*
* Security Note: This file must be bundled with your application, NOT loaded from a CDN.
*
*/
import { broadcastResponseToMainFrame } from "@azure/msal-browser/redirect-bridge";
broadcastResponseToMainFrame().catch((error: unknown) => {
console.error("MSAL redirect bridge error:", error);
});