Commit b3d4888
Additional msal-react v5 migration details (#8386)
This pull request updates the migration documentation for both MSAL
Browser and MSAL React to clarify the required steps for upgrading to
v5, including payload type changes, migration paths, and compatibility
notes. The changes provide explicit migration examples and highlight new
requirements and breaking changes.
**MSAL React v5 Migration Guidance and Compatibility:**
- Added clear migration paths for upgrading from v1/v2/v3 to v5, with
emphasis on following the MSAL Browser v4-v5 migration guide and setting
up the required COOP redirect bridge.
- Documented React version support: MSAL React v5 now requires React
19+, with notes and workarounds for temporary use on React 18, though it
is not supported.
**MSAL Browser v5 Event Handling Changes:**
- Provided explicit guidance on handling the new `LOGIN_SUCCESS` payload
type, including before/after TypeScript code samples to illustrate the
migration from casting to `AuthenticationResult` to using `AccountInfo`.
**InteractionStatus and Event Consolidation:**
- Clarified the consolidation of `InteractionStatus` values and provided
a migration example for simplifying in-progress status checks in React
apps.
These updates ensure developers have clear, actionable steps for
migrating to the latest major versions and handling breaking changes in
event payloads and interaction status.
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tnorling <5307810+tnorling@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 1d8e35f commit b3d4888
2 files changed
Lines changed: 85 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
421 | 461 | | |
422 | 462 | | |
423 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
9 | 30 | | |
10 | 31 | | |
11 | 32 | | |
12 | 33 | | |
13 | 34 | | |
14 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments