Commit 2b78625
authored
[v5] Add interrupted_user to InteractionRequired Error list (#8322)
This pull request enhances the `@azure/msal-common` package by improving
the documentation and public exposure of several error codes, and by
adding support for a new error code (`interrupted_user`) to the list of
interaction required errors. These changes make error handling more
robust and transparent for consumers of the library.
**Error code improvements and additions:**
* Added a new error code, `interrupted_user`, to the
`InteractionRequiredAuthErrorCodes` enum and included it in the lists of
interaction required errors. This code indicates that the user is in an
interrupted state and requires interaction to proceed.
[[1]](diffhunk://#diff-7f0fe7571801f31eb8b7836af2cc65e994162a583145a4469ce94d92b1d3ac03R1-R7)
[[2]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L2663-R2665)
[[3]](diffhunk://#diff-175e2da3fd2f20fd01bf24622c10e9a9a44b468507420611113b1917ea47f00bR19)
[[4]](diffhunk://#diff-175e2da3fd2f20fd01bf24622c10e9a9a44b468507420611113b1917ea47f00bR30)
[[5]](diffhunk://#diff-9b9e373ecd25242838c370efe898168af89089ced090e293f571d816f02e8cf0L6-R51)
* Improved documentation and made the following error codes explicitly
public: `badToken`, `consentRequired`, `interactionRequired`,
`loginRequired`, `nativeAccountUnavailable`, `noTokensFound`,
`refreshTokenExpired`, and `uxNotAllowed`. This clarifies their usage
and ensures they are part of the package's public API.
[[1]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L944-R944)
[[2]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L1701-R1699)
[[3]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L2638-R2634)
[[4]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L2993-R2991)
[[5]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L3069-R3065)
[[6]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L3195-R3189)
[[7]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L3749-R3741)
[[8]](diffhunk://#diff-09087b913ebbfa828e5f36b7476a400328e0a7131db84f622cc5f6994759a117L4638-R4628)
[[9]](diffhunk://#diff-9b9e373ecd25242838c370efe898168af89089ced090e293f571d816f02e8cf0L6-R51)
**Documentation enhancements:**
* Added or improved JSDoc comments for all error code exports in
`InteractionRequiredAuthErrorCodes.ts`, providing clear descriptions for
each code and marking them as `@public`.1 parent c008898 commit 2b78625
6 files changed
Lines changed: 87 additions & 27 deletions
File tree
- change
- docs
- lib/msal-common
- apiReview
- src/error
- test/error
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
305 | 310 | | |
306 | 311 | | |
307 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
| 944 | + | |
947 | 945 | | |
948 | 946 | | |
949 | 947 | | |
| |||
1698 | 1696 | | |
1699 | 1697 | | |
1700 | 1698 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
| 1699 | + | |
1704 | 1700 | | |
1705 | 1701 | | |
1706 | 1702 | | |
| |||
2635 | 2631 | | |
2636 | 2632 | | |
2637 | 2633 | | |
2638 | | - | |
2639 | | - | |
2640 | | - | |
| 2634 | + | |
2641 | 2635 | | |
2642 | 2636 | | |
2643 | 2637 | | |
| |||
2660 | 2654 | | |
2661 | 2655 | | |
2662 | 2656 | | |
2663 | | - | |
| 2657 | + | |
| 2658 | + | |
2664 | 2659 | | |
2665 | 2660 | | |
2666 | 2661 | | |
2667 | 2662 | | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
2668 | 2666 | | |
2669 | 2667 | | |
2670 | 2668 | | |
| |||
2990 | 2988 | | |
2991 | 2989 | | |
2992 | 2990 | | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
| 2991 | + | |
2996 | 2992 | | |
2997 | 2993 | | |
2998 | 2994 | | |
| |||
3066 | 3062 | | |
3067 | 3063 | | |
3068 | 3064 | | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
| 3065 | + | |
3072 | 3066 | | |
3073 | 3067 | | |
3074 | 3068 | | |
| |||
3192 | 3186 | | |
3193 | 3187 | | |
3194 | 3188 | | |
3195 | | - | |
3196 | | - | |
3197 | | - | |
| 3189 | + | |
3198 | 3190 | | |
3199 | 3191 | | |
3200 | 3192 | | |
| |||
3746 | 3738 | | |
3747 | 3739 | | |
3748 | 3740 | | |
3749 | | - | |
3750 | | - | |
3751 | | - | |
| 3741 | + | |
3752 | 3742 | | |
3753 | 3743 | | |
3754 | 3744 | | |
| |||
4635 | 4625 | | |
4636 | 4626 | | |
4637 | 4627 | | |
4638 | | - | |
4639 | | - | |
4640 | | - | |
| 4628 | + | |
4641 | 4629 | | |
4642 | 4630 | | |
4643 | 4631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
10 | 25 | | |
11 | 26 | | |
12 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
13 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
14 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
15 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
16 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
98 | 121 | | |
0 commit comments