@azure/msal-browser 4.9.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  6. package/dist/cache/AccountManager.mjs +1 -1
  7. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  8. package/dist/cache/BrowserCacheManager.d.ts +7 -3
  9. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +8 -7
  11. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  12. package/dist/cache/CacheHelpers.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/LocalStorage.mjs +1 -1
  16. package/dist/cache/MemoryStorage.mjs +1 -1
  17. package/dist/cache/SessionStorage.mjs +1 -1
  18. package/dist/cache/TokenCache.mjs +1 -1
  19. package/dist/config/Configuration.d.ts.map +1 -1
  20. package/dist/config/Configuration.mjs +1 -10
  21. package/dist/config/Configuration.mjs.map +1 -1
  22. package/dist/controllers/ControllerFactory.mjs +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +2 -2
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.d.ts.map +1 -1
  26. package/dist/controllers/StandardController.mjs +32 -20
  27. package/dist/controllers/StandardController.mjs.map +1 -1
  28. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  29. package/dist/crypto/BrowserCrypto.d.ts +6 -0
  30. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  31. package/dist/crypto/BrowserCrypto.mjs +2 -2
  32. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  33. package/dist/crypto/CryptoOps.mjs +1 -1
  34. package/dist/crypto/PkceGenerator.mjs +1 -1
  35. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  36. package/dist/encode/Base64Decode.mjs +1 -1
  37. package/dist/encode/Base64Encode.mjs +1 -1
  38. package/dist/error/BrowserAuthError.mjs +1 -1
  39. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  40. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  41. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  42. package/dist/error/NativeAuthError.mjs +1 -1
  43. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  44. package/dist/error/NestedAppAuthError.mjs +1 -1
  45. package/dist/event/EventHandler.mjs +1 -1
  46. package/dist/event/EventMessage.mjs +1 -1
  47. package/dist/event/EventType.mjs +1 -1
  48. package/dist/index.mjs +1 -1
  49. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  50. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  51. package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
  52. package/dist/interaction_client/PopupClient.mjs +1 -1
  53. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  54. package/dist/interaction_client/RedirectClient.mjs +4 -4
  55. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  56. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  57. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  58. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  59. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  60. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  61. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  62. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  63. package/dist/naa/BridgeError.mjs +1 -1
  64. package/dist/naa/BridgeProxy.mjs +1 -1
  65. package/dist/naa/BridgeStatusCode.mjs +1 -1
  66. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  67. package/dist/navigation/NavigationClient.mjs +1 -1
  68. package/dist/network/FetchClient.mjs +1 -1
  69. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  70. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  71. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  72. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  73. package/dist/packageMetadata.d.ts +1 -1
  74. package/dist/packageMetadata.d.ts.map +1 -1
  75. package/dist/packageMetadata.mjs +2 -2
  76. package/dist/protocol/Authorize.mjs +1 -1
  77. package/dist/request/RequestHelpers.mjs +1 -1
  78. package/dist/response/ResponseHandler.mjs +1 -1
  79. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  80. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  81. package/dist/utils/BrowserConstants.d.ts +5 -0
  82. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  83. package/dist/utils/BrowserConstants.mjs +6 -2
  84. package/dist/utils/BrowserConstants.mjs.map +1 -1
  85. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  86. package/dist/utils/BrowserUtils.mjs +1 -1
  87. package/lib/msal-browser.cjs +112 -103
  88. package/lib/msal-browser.cjs.map +1 -1
  89. package/lib/msal-browser.js +112 -103
  90. package/lib/msal-browser.js.map +1 -1
  91. package/lib/msal-browser.min.js +64 -64
  92. package/lib/types/cache/BrowserCacheManager.d.ts +7 -3
  93. package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
  94. package/lib/types/config/Configuration.d.ts.map +1 -1
  95. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  96. package/lib/types/crypto/BrowserCrypto.d.ts +6 -0
  97. package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -1
  98. package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -1
  99. package/lib/types/packageMetadata.d.ts +1 -1
  100. package/lib/types/packageMetadata.d.ts.map +1 -1
  101. package/lib/types/utils/BrowserConstants.d.ts +5 -0
  102. package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
  103. package/package.json +2 -2
  104. package/src/cache/BrowserCacheManager.ts +43 -31
  105. package/src/config/Configuration.ts +0 -12
  106. package/src/controllers/NestedAppAuthController.ts +1 -1
  107. package/src/controllers/StandardController.ts +82 -54
  108. package/src/crypto/BrowserCrypto.ts +1 -1
  109. package/src/interaction_client/RedirectClient.ts +9 -2
  110. package/src/packageMetadata.ts +1 -1
  111. package/src/utils/BrowserConstants.ts +7 -0
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.9.0 2025-03-25 */
1
+ /*! @azure/msal-browser v4.10.0 2025-04-08 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v15.4.0 2025-03-25 */
9
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -76,6 +76,7 @@
76
76
  UNAUTHORIZED: 401,
77
77
  NOT_FOUND: 404,
78
78
  REQUEST_TIMEOUT: 408,
79
+ GONE: 410,
79
80
  TOO_MANY_REQUESTS: 429,
80
81
  CLIENT_ERROR_RANGE_END: 499,
81
82
  SERVER_ERROR: 500,
@@ -308,7 +309,7 @@
308
309
  // Token renewal offset default in seconds
309
310
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
310
311
 
311
- /*! @azure/msal-common v15.4.0 2025-03-25 */
312
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
312
313
  /*
313
314
  * Copyright (c) Microsoft Corporation. All rights reserved.
314
315
  * Licensed under the MIT License.
@@ -325,7 +326,7 @@
325
326
  unexpectedError: unexpectedError
326
327
  });
327
328
 
328
- /*! @azure/msal-common v15.4.0 2025-03-25 */
329
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
329
330
 
330
331
  /*
331
332
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -374,7 +375,7 @@
374
375
  : AuthErrorMessages[code]);
375
376
  }
376
377
 
377
- /*! @azure/msal-common v15.4.0 2025-03-25 */
378
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
378
379
  /*
379
380
  * Copyright (c) Microsoft Corporation. All rights reserved.
380
381
  * Licensed under the MIT License.
@@ -472,7 +473,7 @@
472
473
  userTimeoutReached: userTimeoutReached
473
474
  });
474
475
 
475
- /*! @azure/msal-common v15.4.0 2025-03-25 */
476
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
476
477
 
477
478
  /*
478
479
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -724,7 +725,7 @@
724
725
  return new ClientAuthError(errorCode, additionalMessage);
725
726
  }
726
727
 
727
- /*! @azure/msal-common v15.4.0 2025-03-25 */
728
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
728
729
 
729
730
  /*
730
731
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -763,7 +764,7 @@
763
764
  },
764
765
  };
765
766
 
766
- /*! @azure/msal-common v15.4.0 2025-03-25 */
767
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
767
768
 
768
769
  /*
769
770
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -954,12 +955,12 @@
954
955
  }
955
956
  }
956
957
 
957
- /*! @azure/msal-common v15.4.0 2025-03-25 */
958
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
958
959
  /* eslint-disable header/header */
959
960
  const name$1 = "@azure/msal-common";
960
- const version$1 = "15.4.0";
961
+ const version$1 = "15.5.0";
961
962
 
962
- /*! @azure/msal-common v15.4.0 2025-03-25 */
963
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
963
964
  /*
964
965
  * Copyright (c) Microsoft Corporation. All rights reserved.
965
966
  * Licensed under the MIT License.
@@ -979,7 +980,7 @@
979
980
  AzureUsGovernment: "https://login.microsoftonline.us",
980
981
  };
981
982
 
982
- /*! @azure/msal-common v15.4.0 2025-03-25 */
983
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
983
984
 
984
985
  /*
985
986
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1040,7 +1041,7 @@
1040
1041
  }
1041
1042
  }
1042
1043
 
1043
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1044
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1044
1045
  /*
1045
1046
  * Copyright (c) Microsoft Corporation. All rights reserved.
1046
1047
  * Licensed under the MIT License.
@@ -1095,7 +1096,7 @@
1095
1096
  return cachedAtSec > nowSeconds();
1096
1097
  }
1097
1098
 
1098
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1099
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1099
1100
 
1100
1101
  /*
1101
1102
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1422,7 +1423,7 @@
1422
1423
  return metadata.expiresAt <= nowSeconds();
1423
1424
  }
1424
1425
 
1425
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1426
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1426
1427
  /*
1427
1428
  * Copyright (c) Microsoft Corporation. All rights reserved.
1428
1429
  * Licensed under the MIT License.
@@ -1476,7 +1477,7 @@
1476
1477
  urlParseError: urlParseError
1477
1478
  });
1478
1479
 
1479
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1480
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1480
1481
 
1481
1482
  /*
1482
1483
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1614,7 +1615,7 @@
1614
1615
  return new ClientConfigurationError(errorCode);
1615
1616
  }
1616
1617
 
1617
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1618
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1618
1619
  /*
1619
1620
  * Copyright (c) Microsoft Corporation. All rights reserved.
1620
1621
  * Licensed under the MIT License.
@@ -1711,7 +1712,7 @@
1711
1712
  }
1712
1713
  }
1713
1714
 
1714
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1715
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1715
1716
 
1716
1717
  /*
1717
1718
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1902,7 +1903,7 @@
1902
1903
  }
1903
1904
  }
1904
1905
 
1905
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1906
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1906
1907
 
1907
1908
  /*
1908
1909
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1942,7 +1943,7 @@
1942
1943
  };
1943
1944
  }
1944
1945
 
1945
- /*! @azure/msal-common v15.4.0 2025-03-25 */
1946
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
1946
1947
  /*
1947
1948
  * Copyright (c) Microsoft Corporation. All rights reserved.
1948
1949
  * Licensed under the MIT License.
@@ -2021,7 +2022,7 @@
2021
2022
  return updatedAccountInfo;
2022
2023
  }
2023
2024
 
2024
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2025
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2025
2026
  /*
2026
2027
  * Copyright (c) Microsoft Corporation. All rights reserved.
2027
2028
  * Licensed under the MIT License.
@@ -2036,7 +2037,7 @@
2036
2037
  Ciam: 3,
2037
2038
  };
2038
2039
 
2039
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2040
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2040
2041
  /*
2041
2042
  * Copyright (c) Microsoft Corporation. All rights reserved.
2042
2043
  * Licensed under the MIT License.
@@ -2058,7 +2059,7 @@
2058
2059
  return null;
2059
2060
  }
2060
2061
 
2061
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2062
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2062
2063
  /*
2063
2064
  * Copyright (c) Microsoft Corporation. All rights reserved.
2064
2065
  * Licensed under the MIT License.
@@ -2082,7 +2083,7 @@
2082
2083
  EAR: "EAR",
2083
2084
  };
2084
2085
 
2085
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2086
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2086
2087
 
2087
2088
  /*
2088
2089
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2325,7 +2326,7 @@
2325
2326
  }
2326
2327
  }
2327
2328
 
2328
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2329
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2329
2330
 
2330
2331
  /*
2331
2332
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2383,7 +2384,7 @@
2383
2384
  return queryParameterArray.join("&");
2384
2385
  }
2385
2386
 
2386
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2387
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2387
2388
 
2388
2389
  /*
2389
2390
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2547,7 +2548,7 @@
2547
2548
  }
2548
2549
  }
2549
2550
 
2550
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2551
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2551
2552
 
2552
2553
  /*
2553
2554
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2687,7 +2688,7 @@
2687
2688
  return null;
2688
2689
  }
2689
2690
 
2690
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2691
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2691
2692
  /*
2692
2693
  * Copyright (c) Microsoft Corporation. All rights reserved.
2693
2694
  * Licensed under the MIT License.
@@ -2695,7 +2696,7 @@
2695
2696
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
2696
2697
  const cacheUnknownErrorCode = "cache_error_unknown";
2697
2698
 
2698
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2699
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2699
2700
 
2700
2701
  /*
2701
2702
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2722,7 +2723,7 @@
2722
2723
  }
2723
2724
  }
2724
2725
 
2725
- /*! @azure/msal-common v15.4.0 2025-03-25 */
2726
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
2726
2727
 
2727
2728
  /*
2728
2729
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3907,7 +3908,7 @@
3907
3908
  }
3908
3909
  }
3909
3910
 
3910
- /*! @azure/msal-common v15.4.0 2025-03-25 */
3911
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
3911
3912
 
3912
3913
  /*
3913
3914
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4006,7 +4007,7 @@
4006
4007
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
4007
4008
  }
4008
4009
 
4009
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4010
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4010
4011
  /*
4011
4012
  * Copyright (c) Microsoft Corporation. All rights reserved.
4012
4013
  * Licensed under the MIT License.
@@ -4016,7 +4017,7 @@
4016
4017
  UPN: "UPN",
4017
4018
  };
4018
4019
 
4019
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4020
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4020
4021
  /*
4021
4022
  * Copyright (c) Microsoft Corporation. All rights reserved.
4022
4023
  * Licensed under the MIT License.
@@ -4066,7 +4067,7 @@
4066
4067
  const EAR_JWK = "ear_jwk";
4067
4068
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
4068
4069
 
4069
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4070
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4070
4071
 
4071
4072
  /*
4072
4073
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4434,7 +4435,7 @@
4434
4435
  parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
4435
4436
  }
4436
4437
 
4437
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4438
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4438
4439
  /*
4439
4440
  * Copyright (c) Microsoft Corporation. All rights reserved.
4440
4441
  * Licensed under the MIT License.
@@ -4446,7 +4447,7 @@
4446
4447
  response.hasOwnProperty("jwks_uri"));
4447
4448
  }
4448
4449
 
4449
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4450
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4450
4451
  /*
4451
4452
  * Copyright (c) Microsoft Corporation. All rights reserved.
4452
4453
  * Licensed under the MIT License.
@@ -4456,7 +4457,7 @@
4456
4457
  response.hasOwnProperty("metadata"));
4457
4458
  }
4458
4459
 
4459
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4460
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4460
4461
  /*
4461
4462
  * Copyright (c) Microsoft Corporation. All rights reserved.
4462
4463
  * Licensed under the MIT License.
@@ -4466,7 +4467,7 @@
4466
4467
  response.hasOwnProperty("error_description"));
4467
4468
  }
4468
4469
 
4469
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4470
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4470
4471
  /*
4471
4472
  * Copyright (c) Microsoft Corporation. All rights reserved.
4472
4473
  * Licensed under the MIT License.
@@ -4979,7 +4980,7 @@
4979
4980
  "encryptedCacheExpiredCount",
4980
4981
  ]);
4981
4982
 
4982
- /*! @azure/msal-common v15.4.0 2025-03-25 */
4983
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
4983
4984
  /*
4984
4985
  * Copyright (c) Microsoft Corporation. All rights reserved.
4985
4986
  * Licensed under the MIT License.
@@ -5075,7 +5076,7 @@
5075
5076
  };
5076
5077
  };
5077
5078
 
5078
- /*! @azure/msal-common v15.4.0 2025-03-25 */
5079
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
5079
5080
 
5080
5081
  /*
5081
5082
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5184,7 +5185,7 @@
5184
5185
  },
5185
5186
  };
5186
5187
 
5187
- /*! @azure/msal-common v15.4.0 2025-03-25 */
5188
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
5188
5189
 
5189
5190
  /*
5190
5191
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6023,7 +6024,7 @@
6023
6024
  };
6024
6025
  }
6025
6026
 
6026
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6027
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6027
6028
 
6028
6029
  /*
6029
6030
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6054,7 +6055,7 @@
6054
6055
  }
6055
6056
  }
6056
6057
 
6057
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6058
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6058
6059
 
6059
6060
  /*
6060
6061
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6073,7 +6074,7 @@
6073
6074
  }
6074
6075
  }
6075
6076
 
6076
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6077
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6077
6078
  /*
6078
6079
  * Copyright (c) Microsoft Corporation. All rights reserved.
6079
6080
  * Licensed under the MIT License.
@@ -6094,7 +6095,7 @@
6094
6095
  };
6095
6096
  }
6096
6097
 
6097
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6098
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6098
6099
 
6099
6100
  /*
6100
6101
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6181,7 +6182,7 @@
6181
6182
  }
6182
6183
  }
6183
6184
 
6184
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6185
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6185
6186
 
6186
6187
  /*
6187
6188
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6211,7 +6212,7 @@
6211
6212
  return new NetworkError(error, httpStatus, responseHeaders);
6212
6213
  }
6213
6214
 
6214
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6215
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6215
6216
 
6216
6217
  /*
6217
6218
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6359,7 +6360,7 @@
6359
6360
  }
6360
6361
  }
6361
6362
 
6362
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6363
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6363
6364
  /*
6364
6365
  * Copyright (c) Microsoft Corporation. All rights reserved.
6365
6366
  * Licensed under the MIT License.
@@ -6385,7 +6386,7 @@
6385
6386
  refreshTokenExpired: refreshTokenExpired
6386
6387
  });
6387
6388
 
6388
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6389
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6389
6390
 
6390
6391
  /*
6391
6392
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6473,7 +6474,7 @@
6473
6474
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6474
6475
  }
6475
6476
 
6476
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6477
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6477
6478
 
6478
6479
  /*
6479
6480
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6545,7 +6546,7 @@
6545
6546
  }
6546
6547
  }
6547
6548
 
6548
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6549
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6549
6550
 
6550
6551
  /*
6551
6552
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6629,7 +6630,7 @@
6629
6630
  }
6630
6631
  }
6631
6632
 
6632
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6633
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6633
6634
  /*
6634
6635
  * Copyright (c) Microsoft Corporation. All rights reserved.
6635
6636
  * Licensed under the MIT License.
@@ -6656,7 +6657,7 @@
6656
6657
  }
6657
6658
  }
6658
6659
 
6659
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6660
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6660
6661
 
6661
6662
  /*
6662
6663
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6987,7 +6988,7 @@
6987
6988
  return baseAccount;
6988
6989
  }
6989
6990
 
6990
- /*! @azure/msal-common v15.4.0 2025-03-25 */
6991
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
6991
6992
 
6992
6993
  /*
6993
6994
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7054,7 +7055,7 @@
7054
7055
  }
7055
7056
  }
7056
7057
 
7057
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7058
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7058
7059
  /*
7059
7060
  * Copyright (c) Microsoft Corporation. All rights reserved.
7060
7061
  * Licensed under the MIT License.
@@ -7072,7 +7073,7 @@
7072
7073
  }
7073
7074
  }
7074
7075
 
7075
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7076
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7076
7077
 
7077
7078
  /*
7078
7079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7305,7 +7306,7 @@
7305
7306
  }
7306
7307
  }
7307
7308
 
7308
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7309
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7309
7310
 
7310
7311
  /*
7311
7312
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7514,7 +7515,7 @@
7514
7515
  }
7515
7516
  }
7516
7517
 
7517
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7518
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7518
7519
 
7519
7520
  /*
7520
7521
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7612,7 +7613,7 @@
7612
7613
  }
7613
7614
  }
7614
7615
 
7615
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7616
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7616
7617
 
7617
7618
  /*
7618
7619
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7627,7 +7628,7 @@
7627
7628
  },
7628
7629
  };
7629
7630
 
7630
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7631
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7631
7632
 
7632
7633
  /*
7633
7634
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7851,7 +7852,7 @@
7851
7852
  return account.idTokenClaims?.login_hint || null;
7852
7853
  }
7853
7854
 
7854
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7855
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7855
7856
 
7856
7857
  /*
7857
7858
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7909,7 +7910,7 @@
7909
7910
  }
7910
7911
  }
7911
7912
 
7912
- /*! @azure/msal-common v15.4.0 2025-03-25 */
7913
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
7913
7914
 
7914
7915
  /*
7915
7916
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8172,7 +8173,7 @@
8172
8173
  }
8173
8174
  }
8174
8175
 
8175
- /*! @azure/msal-common v15.4.0 2025-03-25 */
8176
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
8176
8177
  /*
8177
8178
  * Copyright (c) Microsoft Corporation. All rights reserved.
8178
8179
  * Licensed under the MIT License.
@@ -8180,7 +8181,7 @@
8180
8181
  const missingKidError = "missing_kid_error";
8181
8182
  const missingAlgError = "missing_alg_error";
8182
8183
 
8183
- /*! @azure/msal-common v15.4.0 2025-03-25 */
8184
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
8184
8185
 
8185
8186
  /*
8186
8187
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8205,7 +8206,7 @@
8205
8206
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
8206
8207
  }
8207
8208
 
8208
- /*! @azure/msal-common v15.4.0 2025-03-25 */
8209
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
8209
8210
 
8210
8211
  /*
8211
8212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8245,7 +8246,7 @@
8245
8246
  }
8246
8247
  }
8247
8248
 
8248
- /*! @azure/msal-common v15.4.0 2025-03-25 */
8249
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
8249
8250
 
8250
8251
  /*
8251
8252
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8324,7 +8325,7 @@
8324
8325
  }
8325
8326
  }
8326
8327
 
8327
- /*! @azure/msal-common v15.4.0 2025-03-25 */
8328
+ /*! @azure/msal-common v15.5.0 2025-04-08 */
8328
8329
 
8329
8330
  /*
8330
8331
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9366,6 +9367,10 @@
9366
9367
  GET: "GET",
9367
9368
  POST: "POST",
9368
9369
  };
9370
+ const INTERACTION_TYPE = {
9371
+ SIGNIN: "signin",
9372
+ SIGNOUT: "signout",
9373
+ };
9369
9374
  /**
9370
9375
  * Temporary cache keys for MSAL, deleted after any request.
9371
9376
  */
@@ -10412,21 +10417,12 @@
10412
10417
  system: providedSystemOptions,
10413
10418
  telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...userInputTelemetry },
10414
10419
  };
10415
- /**
10416
- * Temporarily disable EAR until implementation is complete
10417
- * TODO: Remove this
10418
- */
10419
- if (overlayedConfig.auth.protocolMode === ProtocolMode.EAR) {
10420
- const logger = new Logger(providedSystemOptions.loggerOptions);
10421
- logger.warning("EAR Protocol Mode is not yet supported. Overriding to use PKCE auth");
10422
- overlayedConfig.auth.protocolMode = ProtocolMode.AAD;
10423
- }
10424
10420
  return overlayedConfig;
10425
10421
  }
10426
10422
 
10427
10423
  /* eslint-disable header/header */
10428
10424
  const name = "@azure/msal-browser";
10429
- const version = "4.9.0";
10425
+ const version = "4.10.0";
10430
10426
 
10431
10427
  /*
10432
10428
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12512,7 +12508,7 @@
12512
12508
  return parsedRequest;
12513
12509
  }
12514
12510
  isInteractionInProgress(matchClientId) {
12515
- const clientId = this.getInteractionInProgress();
12511
+ const clientId = this.getInteractionInProgress()?.clientId;
12516
12512
  if (matchClientId) {
12517
12513
  return clientId === this.clientId;
12518
12514
  }
@@ -12522,9 +12518,10 @@
12522
12518
  }
12523
12519
  getInteractionInProgress() {
12524
12520
  const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
12525
- return this.getTemporaryCache(key, false);
12521
+ const value = this.getTemporaryCache(key, false);
12522
+ return value ? JSON.parse(value) : null;
12526
12523
  }
12527
- setInteractionInProgress(inProgress) {
12524
+ setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
12528
12525
  // Ensure we don't overwrite interaction in progress for a different clientId
12529
12526
  const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
12530
12527
  if (inProgress) {
@@ -12533,11 +12530,11 @@
12533
12530
  }
12534
12531
  else {
12535
12532
  // No interaction is in progress
12536
- this.setTemporaryCache(key, this.clientId, false);
12533
+ this.setTemporaryCache(key, JSON.stringify({ clientId: this.clientId, type }), false);
12537
12534
  }
12538
12535
  }
12539
12536
  else if (!inProgress &&
12540
- this.getInteractionInProgress() === this.clientId) {
12537
+ this.getInteractionInProgress()?.clientId === this.clientId) {
12541
12538
  this.removeTemporaryItem(key);
12542
12539
  }
12543
12540
  }
@@ -15493,7 +15490,7 @@
15493
15490
  this.logger.verbose("Logout onRedirectNavigate did not return false, navigating");
15494
15491
  // Ensure interaction is in progress
15495
15492
  if (!this.browserStorage.getInteractionInProgress()) {
15496
- this.browserStorage.setInteractionInProgress(true);
15493
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
15497
15494
  }
15498
15495
  await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
15499
15496
  return;
@@ -15507,7 +15504,7 @@
15507
15504
  else {
15508
15505
  // Ensure interaction is in progress
15509
15506
  if (!this.browserStorage.getInteractionInProgress()) {
15510
- this.browserStorage.setInteractionInProgress(true);
15507
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
15511
15508
  }
15512
15509
  await this.navigationClient.navigateExternal(logoutUri, navigationOptions);
15513
15510
  return;
@@ -16345,29 +16342,41 @@
16345
16342
  this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
16346
16343
  return null;
16347
16344
  }
16345
+ const interactionType = this.browserStorage.getInteractionInProgress()?.type;
16346
+ if (interactionType === INTERACTION_TYPE.SIGNOUT) {
16347
+ this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out");
16348
+ this.browserStorage.setInteractionInProgress(false);
16349
+ return Promise.resolve(null);
16350
+ }
16348
16351
  const loggedInAccounts = this.getAllAccounts();
16349
16352
  const platformBrokerRequest = this.browserStorage.getCachedNativeRequest();
16350
16353
  const useNative = platformBrokerRequest &&
16351
16354
  NativeMessageHandler.isPlatformBrokerAvailable(this.config, this.logger, this.nativeExtensionProvider) &&
16352
16355
  this.nativeExtensionProvider &&
16353
16356
  !hash;
16354
- let rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, platformBrokerRequest?.correlationId || "");
16357
+ let rootMeasurement;
16355
16358
  this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
16356
16359
  let redirectResponse;
16357
- if (useNative && this.nativeExtensionProvider) {
16358
- this.logger.trace("handleRedirectPromise - acquiring token from native platform");
16359
- const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
16360
- redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
16360
+ try {
16361
+ if (useNative && this.nativeExtensionProvider) {
16362
+ rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, platformBrokerRequest?.correlationId || "");
16363
+ this.logger.trace("handleRedirectPromise - acquiring token from native platform");
16364
+ const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
16365
+ redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
16366
+ }
16367
+ else {
16368
+ const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest();
16369
+ const correlationId = standardRequest.correlationId;
16370
+ // Reset rootMeasurement now that we have correlationId
16371
+ rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
16372
+ this.logger.trace("handleRedirectPromise - acquiring token from web flow");
16373
+ const redirectClient = this.createRedirectClient(correlationId);
16374
+ redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
16375
+ }
16361
16376
  }
16362
- else {
16363
- const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest();
16364
- const correlationId = standardRequest.correlationId;
16365
- // Reset rootMeasurement now that we have correlationId
16366
- rootMeasurement.discard();
16367
- rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
16368
- this.logger.trace("handleRedirectPromise - acquiring token from web flow");
16369
- const redirectClient = this.createRedirectClient(correlationId);
16370
- redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, standardRequest, codeVerifier, rootMeasurement);
16377
+ catch (e) {
16378
+ this.browserStorage.resetRequestCache();
16379
+ throw e;
16371
16380
  }
16372
16381
  return redirectResponse
16373
16382
  .then((result) => {
@@ -16473,7 +16482,7 @@
16473
16482
  const isLoggedIn = this.getAllAccounts().length > 0;
16474
16483
  try {
16475
16484
  redirectPreflightCheck(this.initialized, this.config);
16476
- this.browserStorage.setInteractionInProgress(true);
16485
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
16477
16486
  if (isLoggedIn) {
16478
16487
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
16479
16488
  }
@@ -16538,7 +16547,7 @@
16538
16547
  try {
16539
16548
  this.logger.verbose("acquireTokenPopup called", correlationId);
16540
16549
  preflightCheck(this.initialized, atPopupMeasurement);
16541
- this.browserStorage.setInteractionInProgress(true);
16550
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
16542
16551
  }
16543
16552
  catch (e) {
16544
16553
  // Since this function is syncronous we need to reject
@@ -16913,7 +16922,7 @@
16913
16922
  async logoutRedirect(logoutRequest) {
16914
16923
  const correlationId = this.getRequestCorrelationId(logoutRequest);
16915
16924
  redirectPreflightCheck(this.initialized, this.config);
16916
- this.browserStorage.setInteractionInProgress(true);
16925
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
16917
16926
  const redirectClient = this.createRedirectClient(correlationId);
16918
16927
  return redirectClient.logout(logoutRequest);
16919
16928
  }
@@ -16925,7 +16934,7 @@
16925
16934
  try {
16926
16935
  const correlationId = this.getRequestCorrelationId(logoutRequest);
16927
16936
  preflightCheck$1(this.initialized);
16928
- this.browserStorage.setInteractionInProgress(true);
16937
+ this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNOUT);
16929
16938
  const popupClient = this.createPopupClient(correlationId);
16930
16939
  return popupClient.logout(logoutRequest).finally(() => {
16931
16940
  this.browserStorage.setInteractionInProgress(false);
@@ -17974,7 +17983,7 @@
17974
17983
  });
17975
17984
  return result;
17976
17985
  }
17977
- this.logger.error("Cached tokens are not found for the account, proceeding with silent token request.");
17986
+ this.logger.warning("Cached tokens are not found for the account, proceeding with silent token request.");
17978
17987
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Silent, null);
17979
17988
  atsMeasurement?.end({
17980
17989
  success: false,