You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/errors.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -847,7 +847,7 @@ The redirect bridge is a mechanism that enables authentication flows in COOP (Cr
847
847
848
848
This timeout typically occurs for the following reasons:
849
849
850
-
1. The page you use as your `redirectUri` is not loading the `msal-redirect-bridge.js` script
850
+
1. The page you use as your `redirectUri` is not loading the redirect bridge script (either via the ESM import from `@azure/msal-browser/redirect-bridge` or the UMD bundle `msal-redirect-bridge(.min).js`)
851
851
1. The redirect page is removing or manipulating the URL hash before the bridge script can process it
852
852
1. The redirect page is automatically navigating to a different page before the bridge can communicate the response
853
853
1. Your identity provider is being slow to redirect back to your `redirectUri` (network latency)
@@ -857,7 +857,28 @@ This timeout typically occurs for the following reasons:
857
857
858
858
✔️ **Ensure the redirect bridge script is loaded:**
859
859
860
-
Your `redirectUri` page must include the redirect bridge script to enable communication back to the main window:
860
+
Your `redirectUri` page must include the redirect bridge script to enable communication back to the main window.
861
+
862
+
**Option A — ESM (recommended for apps using a bundler such as Vite or Webpack):**
For framework-specific setup instructions (Angular, React, Next.js, Vite, Webpack), see the [redirect bridge guide](../lib/msal-browser/docs/redirect-bridge.md).
899
+
877
900
**Important**: If your application uses a router library (e.g. React Router, Angular Router), please make sure it does not strip the hash or auto-redirect while MSAL token acquisition is in progress. If possible, it is best if your `redirectUri` page does not invoke the router at all.
878
901
879
902
**Issues caused by the redirectUri page:**
@@ -882,7 +905,7 @@ When you make a silent call, in some cases, an iframe will be opened and will na
882
905
883
906
✔️ To solve this problem you should ensure that the page you use as your `redirectUri` is not doing any of these things.
884
907
885
-
Remember that you will need to register `redirectUri` on your App Registration. We recommend using the HTML code shown above as the content for your registered redirect page.
908
+
Remember that you will need to register `redirectUri` on your App Registration. We recommend using one of the HTML snippets above as the content for your registered redirect page.
> The `@azure/msal-browser/redirect-bridge` specifier must be resolved by a bundler (Vite, Webpack, etc.) — it is not a URL that browsers can fetch directly. For framework-specific instructions, see the [Redirect Bridge setup guide](./redirect-bridge.md).
207
+
204
208
### Configuration
205
209
206
210
You can set the `redirectUri` globally in your MSAL configuration or on a per-request basis:
@@ -236,10 +240,10 @@ For more information and complete sample implementations, see:
236
240
237
241
For popup flows, you can use the `overrideInteractionInProgress` flag to cancel a pending interaction and start a new one. This is useful for recovery scenarios where the user cancelled a popup or an interaction failed.
238
242
239
-
> [!NOTE]
243
+
> [!NOTE]
240
244
> This feature is **only available for popup flows** and is **not supported for redirect flows**. With the COOP (Cross-Origin-Opener-Policy) header, the traditional `window.opener` connection is severed, allowing popup windows to communicate with the main frame only via BroadcastChannel.
241
245
242
-
> [!CAUTION]
246
+
> [!CAUTION]
243
247
> Setting this to `true` will forcefully cancel any pending popup authentication request but **will not** close any open popups.
0 commit comments