@azure/msal-browser 4.0.2 → 4.1.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 (81) 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.mjs +1 -1
  9. package/dist/cache/CacheHelpers.mjs +1 -1
  10. package/dist/cache/CookieStorage.mjs +1 -1
  11. package/dist/cache/DatabaseStorage.mjs +1 -1
  12. package/dist/cache/LocalStorage.mjs +1 -1
  13. package/dist/cache/MemoryStorage.mjs +1 -1
  14. package/dist/cache/SessionStorage.mjs +1 -1
  15. package/dist/cache/TokenCache.mjs +1 -1
  16. package/dist/config/Configuration.mjs +1 -1
  17. package/dist/controllers/ControllerFactory.mjs +1 -1
  18. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  19. package/dist/controllers/StandardController.mjs +1 -1
  20. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  21. package/dist/crypto/BrowserCrypto.mjs +1 -1
  22. package/dist/crypto/CryptoOps.mjs +1 -1
  23. package/dist/crypto/PkceGenerator.mjs +1 -1
  24. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  25. package/dist/encode/Base64Decode.mjs +1 -1
  26. package/dist/encode/Base64Encode.mjs +1 -1
  27. package/dist/error/BrowserAuthError.mjs +1 -1
  28. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  29. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  30. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  31. package/dist/error/NativeAuthError.mjs +1 -1
  32. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  33. package/dist/error/NestedAppAuthError.mjs +1 -1
  34. package/dist/event/EventHandler.mjs +1 -1
  35. package/dist/event/EventMessage.mjs +1 -1
  36. package/dist/event/EventType.mjs +1 -1
  37. package/dist/index.mjs +1 -1
  38. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  39. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  40. package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
  41. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  42. package/dist/interaction_client/PopupClient.mjs +2 -1
  43. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  44. package/dist/interaction_client/RedirectClient.mjs +1 -1
  45. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  46. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  47. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  48. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  49. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  50. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  51. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  52. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  53. package/dist/naa/BridgeError.mjs +1 -1
  54. package/dist/naa/BridgeProxy.mjs +1 -1
  55. package/dist/naa/BridgeStatusCode.mjs +1 -1
  56. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  57. package/dist/navigation/NavigationClient.mjs +1 -1
  58. package/dist/network/FetchClient.mjs +1 -1
  59. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  60. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  61. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  62. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  63. package/dist/packageMetadata.d.ts +1 -1
  64. package/dist/packageMetadata.mjs +2 -2
  65. package/dist/request/RequestHelpers.mjs +1 -1
  66. package/dist/response/ResponseHandler.mjs +1 -1
  67. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  68. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  69. package/dist/utils/BrowserConstants.mjs +1 -1
  70. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  71. package/dist/utils/BrowserUtils.mjs +1 -1
  72. package/lib/msal-browser.cjs +84 -110
  73. package/lib/msal-browser.cjs.map +1 -1
  74. package/lib/msal-browser.js +84 -110
  75. package/lib/msal-browser.js.map +1 -1
  76. package/lib/msal-browser.min.js +59 -59
  77. package/lib/types/interaction_client/PopupClient.d.ts.map +1 -1
  78. package/lib/types/packageMetadata.d.ts +1 -1
  79. package/package.json +2 -2
  80. package/src/interaction_client/PopupClient.ts +5 -0
  81. package/src/packageMetadata.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v4.0.2 2025-01-22 */
1
+ /*! @azure/msal-browser v4.1.0 2025-02-03 */
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.0.2 2025-01-22 */
9
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -310,7 +310,7 @@
310
310
  // Token renewal offset default in seconds
311
311
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
312
312
 
313
- /*! @azure/msal-common v15.0.2 2025-01-22 */
313
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
314
314
  /*
315
315
  * Copyright (c) Microsoft Corporation. All rights reserved.
316
316
  * Licensed under the MIT License.
@@ -327,7 +327,7 @@
327
327
  unexpectedError: unexpectedError
328
328
  });
329
329
 
330
- /*! @azure/msal-common v15.0.2 2025-01-22 */
330
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
331
331
 
332
332
  /*
333
333
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -376,7 +376,7 @@
376
376
  : AuthErrorMessages[code]);
377
377
  }
378
378
 
379
- /*! @azure/msal-common v15.0.2 2025-01-22 */
379
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
380
380
  /*
381
381
  * Copyright (c) Microsoft Corporation. All rights reserved.
382
382
  * Licensed under the MIT License.
@@ -474,7 +474,7 @@
474
474
  userTimeoutReached: userTimeoutReached
475
475
  });
476
476
 
477
- /*! @azure/msal-common v15.0.2 2025-01-22 */
477
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
478
478
 
479
479
  /*
480
480
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -726,7 +726,7 @@
726
726
  return new ClientAuthError(errorCode, additionalMessage);
727
727
  }
728
728
 
729
- /*! @azure/msal-common v15.0.2 2025-01-22 */
729
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
730
730
 
731
731
  /*
732
732
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -765,7 +765,7 @@
765
765
  },
766
766
  };
767
767
 
768
- /*! @azure/msal-common v15.0.2 2025-01-22 */
768
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
769
769
 
770
770
  /*
771
771
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -956,12 +956,12 @@
956
956
  }
957
957
  }
958
958
 
959
- /*! @azure/msal-common v15.0.2 2025-01-22 */
959
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
960
960
  /* eslint-disable header/header */
961
961
  const name$1 = "@azure/msal-common";
962
- const version$1 = "15.0.2";
962
+ const version$1 = "15.1.0";
963
963
 
964
- /*! @azure/msal-common v15.0.2 2025-01-22 */
964
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
965
965
  /*
966
966
  * Copyright (c) Microsoft Corporation. All rights reserved.
967
967
  * Licensed under the MIT License.
@@ -981,7 +981,7 @@
981
981
  AzureUsGovernment: "https://login.microsoftonline.us",
982
982
  };
983
983
 
984
- /*! @azure/msal-common v15.0.2 2025-01-22 */
984
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
985
985
 
986
986
  /*
987
987
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1042,7 +1042,7 @@
1042
1042
  }
1043
1043
  }
1044
1044
 
1045
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1045
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1046
1046
  /*
1047
1047
  * Copyright (c) Microsoft Corporation. All rights reserved.
1048
1048
  * Licensed under the MIT License.
@@ -1079,7 +1079,7 @@
1079
1079
  return cachedAtSec > nowSeconds();
1080
1080
  }
1081
1081
 
1082
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1082
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1083
1083
 
1084
1084
  /*
1085
1085
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1406,7 +1406,7 @@
1406
1406
  return metadata.expiresAt <= nowSeconds();
1407
1407
  }
1408
1408
 
1409
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1409
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1410
1410
  /*
1411
1411
  * Copyright (c) Microsoft Corporation. All rights reserved.
1412
1412
  * Licensed under the MIT License.
@@ -1460,7 +1460,7 @@
1460
1460
  urlParseError: urlParseError
1461
1461
  });
1462
1462
 
1463
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1463
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1464
1464
 
1465
1465
  /*
1466
1466
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1598,7 +1598,7 @@
1598
1598
  return new ClientConfigurationError(errorCode);
1599
1599
  }
1600
1600
 
1601
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1601
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1602
1602
  /*
1603
1603
  * Copyright (c) Microsoft Corporation. All rights reserved.
1604
1604
  * Licensed under the MIT License.
@@ -1695,7 +1695,7 @@
1695
1695
  }
1696
1696
  }
1697
1697
 
1698
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1698
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1699
1699
 
1700
1700
  /*
1701
1701
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1886,7 +1886,7 @@
1886
1886
  }
1887
1887
  }
1888
1888
 
1889
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1889
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1890
1890
 
1891
1891
  /*
1892
1892
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1926,7 +1926,7 @@
1926
1926
  };
1927
1927
  }
1928
1928
 
1929
- /*! @azure/msal-common v15.0.2 2025-01-22 */
1929
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
1930
1930
  /*
1931
1931
  * Copyright (c) Microsoft Corporation. All rights reserved.
1932
1932
  * Licensed under the MIT License.
@@ -2005,7 +2005,7 @@
2005
2005
  return updatedAccountInfo;
2006
2006
  }
2007
2007
 
2008
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2008
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2009
2009
  /*
2010
2010
  * Copyright (c) Microsoft Corporation. All rights reserved.
2011
2011
  * Licensed under the MIT License.
@@ -2020,7 +2020,7 @@
2020
2020
  Ciam: 3,
2021
2021
  };
2022
2022
 
2023
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2023
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2024
2024
  /*
2025
2025
  * Copyright (c) Microsoft Corporation. All rights reserved.
2026
2026
  * Licensed under the MIT License.
@@ -2042,7 +2042,7 @@
2042
2042
  return null;
2043
2043
  }
2044
2044
 
2045
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2045
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2046
2046
  /*
2047
2047
  * Copyright (c) Microsoft Corporation. All rights reserved.
2048
2048
  * Licensed under the MIT License.
@@ -2055,7 +2055,7 @@
2055
2055
  OIDC: "OIDC",
2056
2056
  };
2057
2057
 
2058
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2058
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2059
2059
 
2060
2060
  /*
2061
2061
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2298,7 +2298,7 @@
2298
2298
  }
2299
2299
  }
2300
2300
 
2301
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2301
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2302
2302
 
2303
2303
  /*
2304
2304
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2345,7 +2345,7 @@
2345
2345
  return null;
2346
2346
  }
2347
2347
 
2348
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2348
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2349
2349
 
2350
2350
  /*
2351
2351
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2509,7 +2509,7 @@
2509
2509
  }
2510
2510
  }
2511
2511
 
2512
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2512
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2513
2513
 
2514
2514
  /*
2515
2515
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2649,7 +2649,7 @@
2649
2649
  return null;
2650
2650
  }
2651
2651
 
2652
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2652
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2653
2653
  /*
2654
2654
  * Copyright (c) Microsoft Corporation. All rights reserved.
2655
2655
  * Licensed under the MIT License.
@@ -2657,7 +2657,7 @@
2657
2657
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
2658
2658
  const cacheUnknownErrorCode = "cache_error_unknown";
2659
2659
 
2660
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2660
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2661
2661
 
2662
2662
  /*
2663
2663
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2684,7 +2684,7 @@
2684
2684
  }
2685
2685
  }
2686
2686
 
2687
- /*! @azure/msal-common v15.0.2 2025-01-22 */
2687
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
2688
2688
 
2689
2689
  /*
2690
2690
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3869,7 +3869,7 @@
3869
3869
  }
3870
3870
  }
3871
3871
 
3872
- /*! @azure/msal-common v15.0.2 2025-01-22 */
3872
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
3873
3873
 
3874
3874
  /*
3875
3875
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3968,7 +3968,7 @@
3968
3968
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3969
3969
  }
3970
3970
 
3971
- /*! @azure/msal-common v15.0.2 2025-01-22 */
3971
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
3972
3972
  /*
3973
3973
  * Copyright (c) Microsoft Corporation. All rights reserved.
3974
3974
  * Licensed under the MIT License.
@@ -3978,7 +3978,7 @@
3978
3978
  UPN: "UPN",
3979
3979
  };
3980
3980
 
3981
- /*! @azure/msal-common v15.0.2 2025-01-22 */
3981
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
3982
3982
  /*
3983
3983
  * Copyright (c) Microsoft Corporation. All rights reserved.
3984
3984
  * Licensed under the MIT License.
@@ -4028,7 +4028,7 @@
4028
4028
  const BROKER_CLIENT_ID = "brk_client_id";
4029
4029
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4030
4030
 
4031
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4031
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4032
4032
 
4033
4033
  /*
4034
4034
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4095,7 +4095,7 @@
4095
4095
  }
4096
4096
  }
4097
4097
 
4098
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4098
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4099
4099
 
4100
4100
  /*
4101
4101
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4503,7 +4503,7 @@
4503
4503
  }
4504
4504
  }
4505
4505
 
4506
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4506
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4507
4507
  /*
4508
4508
  * Copyright (c) Microsoft Corporation. All rights reserved.
4509
4509
  * Licensed under the MIT License.
@@ -4515,7 +4515,7 @@
4515
4515
  response.hasOwnProperty("jwks_uri"));
4516
4516
  }
4517
4517
 
4518
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4518
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4519
4519
  /*
4520
4520
  * Copyright (c) Microsoft Corporation. All rights reserved.
4521
4521
  * Licensed under the MIT License.
@@ -4525,7 +4525,7 @@
4525
4525
  response.hasOwnProperty("metadata"));
4526
4526
  }
4527
4527
 
4528
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4528
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4529
4529
  /*
4530
4530
  * Copyright (c) Microsoft Corporation. All rights reserved.
4531
4531
  * Licensed under the MIT License.
@@ -4535,7 +4535,7 @@
4535
4535
  response.hasOwnProperty("error_description"));
4536
4536
  }
4537
4537
 
4538
- /*! @azure/msal-common v15.0.2 2025-01-22 */
4538
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
4539
4539
  /*
4540
4540
  * Copyright (c) Microsoft Corporation. All rights reserved.
4541
4541
  * Licensed under the MIT License.
@@ -5042,7 +5042,7 @@
5042
5042
  "encryptedCacheExpiredCount",
5043
5043
  ]);
5044
5044
 
5045
- /*! @azure/msal-common v15.0.2 2025-01-22 */
5045
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
5046
5046
  /*
5047
5047
  * Copyright (c) Microsoft Corporation. All rights reserved.
5048
5048
  * Licensed under the MIT License.
@@ -5138,7 +5138,7 @@
5138
5138
  };
5139
5139
  };
5140
5140
 
5141
- /*! @azure/msal-common v15.0.2 2025-01-22 */
5141
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
5142
5142
 
5143
5143
  /*
5144
5144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5247,7 +5247,7 @@
5247
5247
  },
5248
5248
  };
5249
5249
 
5250
- /*! @azure/msal-common v15.0.2 2025-01-22 */
5250
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
5251
5251
 
5252
5252
  /*
5253
5253
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6086,7 +6086,7 @@
6086
6086
  };
6087
6087
  }
6088
6088
 
6089
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6089
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6090
6090
 
6091
6091
  /*
6092
6092
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6117,7 +6117,7 @@
6117
6117
  }
6118
6118
  }
6119
6119
 
6120
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6120
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6121
6121
 
6122
6122
  /*
6123
6123
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6136,7 +6136,7 @@
6136
6136
  }
6137
6137
  }
6138
6138
 
6139
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6139
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6140
6140
 
6141
6141
  /*
6142
6142
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6234,7 +6234,7 @@
6234
6234
  }
6235
6235
  }
6236
6236
 
6237
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6237
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6238
6238
 
6239
6239
  /*
6240
6240
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6264,7 +6264,7 @@
6264
6264
  return new NetworkError(error, httpStatus, responseHeaders);
6265
6265
  }
6266
6266
 
6267
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6267
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6268
6268
 
6269
6269
  /*
6270
6270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6414,7 +6414,7 @@
6414
6414
  }
6415
6415
  }
6416
6416
 
6417
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6417
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6418
6418
  /*
6419
6419
  * Copyright (c) Microsoft Corporation. All rights reserved.
6420
6420
  * Licensed under the MIT License.
@@ -6440,7 +6440,7 @@
6440
6440
  refreshTokenExpired: refreshTokenExpired
6441
6441
  });
6442
6442
 
6443
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6443
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6444
6444
 
6445
6445
  /*
6446
6446
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6528,7 +6528,7 @@
6528
6528
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6529
6529
  }
6530
6530
 
6531
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6531
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6532
6532
 
6533
6533
  /*
6534
6534
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6600,7 +6600,7 @@
6600
6600
  }
6601
6601
  }
6602
6602
 
6603
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6603
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6604
6604
 
6605
6605
  /*
6606
6606
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6684,7 +6684,7 @@
6684
6684
  }
6685
6685
  }
6686
6686
 
6687
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6687
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6688
6688
  /*
6689
6689
  * Copyright (c) Microsoft Corporation. All rights reserved.
6690
6690
  * Licensed under the MIT License.
@@ -6711,7 +6711,7 @@
6711
6711
  }
6712
6712
  }
6713
6713
 
6714
- /*! @azure/msal-common v15.0.2 2025-01-22 */
6714
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
6715
6715
 
6716
6716
  /*
6717
6717
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7088,7 +7088,7 @@
7088
7088
  return baseAccount;
7089
7089
  }
7090
7090
 
7091
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7091
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7092
7092
  /*
7093
7093
  * Copyright (c) Microsoft Corporation. All rights reserved.
7094
7094
  * Licensed under the MIT License.
@@ -7106,7 +7106,7 @@
7106
7106
  }
7107
7107
  }
7108
7108
 
7109
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7109
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7110
7110
 
7111
7111
  /*
7112
7112
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7392,7 +7392,9 @@
7392
7392
  }
7393
7393
  if (request.domainHint) {
7394
7394
  parameterBuilder.addDomainHint(request.domainHint);
7395
+ this.performanceClient?.addFields({ domainHintFromRequest: true }, correlationId);
7395
7396
  }
7397
+ this.performanceClient?.addFields({ prompt: request.prompt }, correlationId);
7396
7398
  // Add sid or loginHint with preference for login_hint claim (in request) -> sid -> loginHint (upn/email) -> username of AccountInfo object
7397
7399
  if (request.prompt !== PromptValue.SELECT_ACCOUNT) {
7398
7400
  // AAD will throw if prompt=select_account is passed with an account hint
@@ -7400,6 +7402,7 @@
7400
7402
  // SessionID is only used in silent calls
7401
7403
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request");
7402
7404
  parameterBuilder.addSid(request.sid);
7405
+ this.performanceClient?.addFields({ sidFromRequest: true }, correlationId);
7403
7406
  }
7404
7407
  else if (request.account) {
7405
7408
  const accountSid = this.extractAccountSid(request.account);
@@ -7412,6 +7415,7 @@
7412
7415
  if (accountLoginHintClaim) {
7413
7416
  this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account");
7414
7417
  parameterBuilder.addLoginHint(accountLoginHintClaim);
7418
+ this.performanceClient?.addFields({ loginHintFromClaim: true }, correlationId);
7415
7419
  try {
7416
7420
  const clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
7417
7421
  parameterBuilder.addCcsOid(clientInfo);
@@ -7427,6 +7431,7 @@
7427
7431
  */
7428
7432
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account");
7429
7433
  parameterBuilder.addSid(accountSid);
7434
+ this.performanceClient?.addFields({ sidFromClaim: true }, correlationId);
7430
7435
  try {
7431
7436
  const clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
7432
7437
  parameterBuilder.addCcsOid(clientInfo);
@@ -7439,11 +7444,13 @@
7439
7444
  this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request");
7440
7445
  parameterBuilder.addLoginHint(request.loginHint);
7441
7446
  parameterBuilder.addCcsUpn(request.loginHint);
7447
+ this.performanceClient?.addFields({ loginHintFromRequest: true }, correlationId);
7442
7448
  }
7443
7449
  else if (request.account.username) {
7444
7450
  // Fallback to account username if provided
7445
7451
  this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account");
7446
7452
  parameterBuilder.addLoginHint(request.account.username);
7453
+ this.performanceClient?.addFields({ loginHintFromUpn: true }, correlationId);
7447
7454
  try {
7448
7455
  const clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
7449
7456
  parameterBuilder.addCcsOid(clientInfo);
@@ -7457,6 +7464,7 @@
7457
7464
  this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request");
7458
7465
  parameterBuilder.addLoginHint(request.loginHint);
7459
7466
  parameterBuilder.addCcsUpn(request.loginHint);
7467
+ this.performanceClient?.addFields({ loginHintFromRequest: true }, correlationId);
7460
7468
  }
7461
7469
  }
7462
7470
  else {
@@ -7548,7 +7556,7 @@
7548
7556
  }
7549
7557
  }
7550
7558
 
7551
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7559
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7552
7560
 
7553
7561
  /*
7554
7562
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7628,6 +7636,7 @@
7628
7636
  if (refreshToken.expiresOn &&
7629
7637
  isTokenExpired(refreshToken.expiresOn, request.refreshTokenExpirationOffsetSeconds ||
7630
7638
  DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS)) {
7639
+ this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
7631
7640
  throw createInteractionRequiredAuthError(refreshTokenExpired);
7632
7641
  }
7633
7642
  // attach cached RT size to the current measurement
@@ -7644,12 +7653,14 @@
7644
7653
  return await invokeAsync(this.acquireToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
7645
7654
  }
7646
7655
  catch (e) {
7647
- if (e instanceof InteractionRequiredAuthError &&
7648
- e.subError === badToken) {
7649
- // Remove bad refresh token from cache
7650
- this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");
7651
- const badRefreshTokenKey = generateCredentialKey(refreshToken);
7652
- this.cacheManager.removeRefreshToken(badRefreshTokenKey);
7656
+ if (e instanceof InteractionRequiredAuthError) {
7657
+ this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
7658
+ if (e.subError === badToken) {
7659
+ // Remove bad refresh token from cache
7660
+ this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");
7661
+ const badRefreshTokenKey = generateCredentialKey(refreshToken);
7662
+ this.cacheManager.removeRefreshToken(badRefreshTokenKey);
7663
+ }
7653
7664
  }
7654
7665
  throw e;
7655
7666
  }
@@ -7768,7 +7779,7 @@
7768
7779
  }
7769
7780
  }
7770
7781
 
7771
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7782
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7772
7783
 
7773
7784
  /*
7774
7785
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7779,44 +7790,6 @@
7779
7790
  constructor(configuration, performanceClient) {
7780
7791
  super(configuration, performanceClient);
7781
7792
  }
7782
- /**
7783
- * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew
7784
- * the given token and returns the renewed token
7785
- * @param request
7786
- */
7787
- async acquireToken(request) {
7788
- try {
7789
- const [authResponse, cacheOutcome] = await this.acquireCachedToken({
7790
- ...request,
7791
- scopes: request.scopes?.length
7792
- ? request.scopes
7793
- : [...OIDC_DEFAULT_SCOPES],
7794
- });
7795
- // if the token is not expired but must be refreshed; get a new one in the background
7796
- if (cacheOutcome === CacheOutcome.PROACTIVELY_REFRESHED) {
7797
- this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");
7798
- // refresh the access token in the background
7799
- const refreshTokenClient = new RefreshTokenClient(this.config, this.performanceClient);
7800
- refreshTokenClient
7801
- .acquireTokenByRefreshToken(request)
7802
- .catch(() => {
7803
- // do nothing, this is running in the background and no action is to be taken upon success or failure
7804
- });
7805
- }
7806
- // return the cached token
7807
- return authResponse;
7808
- }
7809
- catch (e) {
7810
- if (e instanceof ClientAuthError &&
7811
- e.errorCode === tokenRefreshRequired) {
7812
- const refreshTokenClient = new RefreshTokenClient(this.config, this.performanceClient);
7813
- return refreshTokenClient.acquireTokenByRefreshToken(request);
7814
- }
7815
- else {
7816
- throw e;
7817
- }
7818
- }
7819
- }
7820
7793
  /**
7821
7794
  * Retrieves token from cache or throws an error if it must be refreshed.
7822
7795
  * @param request
@@ -7904,7 +7877,7 @@
7904
7877
  }
7905
7878
  }
7906
7879
 
7907
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7880
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7908
7881
 
7909
7882
  /*
7910
7883
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7919,7 +7892,7 @@
7919
7892
  },
7920
7893
  };
7921
7894
 
7922
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7895
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7923
7896
 
7924
7897
  /*
7925
7898
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7977,7 +7950,7 @@
7977
7950
  }
7978
7951
  }
7979
7952
 
7980
- /*! @azure/msal-common v15.0.2 2025-01-22 */
7953
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
7981
7954
 
7982
7955
  /*
7983
7956
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8240,7 +8213,7 @@
8240
8213
  }
8241
8214
  }
8242
8215
 
8243
- /*! @azure/msal-common v15.0.2 2025-01-22 */
8216
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
8244
8217
  /*
8245
8218
  * Copyright (c) Microsoft Corporation. All rights reserved.
8246
8219
  * Licensed under the MIT License.
@@ -8248,7 +8221,7 @@
8248
8221
  const missingKidError = "missing_kid_error";
8249
8222
  const missingAlgError = "missing_alg_error";
8250
8223
 
8251
- /*! @azure/msal-common v15.0.2 2025-01-22 */
8224
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
8252
8225
 
8253
8226
  /*
8254
8227
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8273,7 +8246,7 @@
8273
8246
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
8274
8247
  }
8275
8248
 
8276
- /*! @azure/msal-common v15.0.2 2025-01-22 */
8249
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
8277
8250
 
8278
8251
  /*
8279
8252
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8313,7 +8286,7 @@
8313
8286
  }
8314
8287
  }
8315
8288
 
8316
- /*! @azure/msal-common v15.0.2 2025-01-22 */
8289
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
8317
8290
 
8318
8291
  /*
8319
8292
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8392,7 +8365,7 @@
8392
8365
  }
8393
8366
  }
8394
8367
 
8395
- /*! @azure/msal-common v15.0.2 2025-01-22 */
8368
+ /*! @azure/msal-common v15.1.0 2025-02-03 */
8396
8369
 
8397
8370
  /*
8398
8371
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10429,7 +10402,7 @@
10429
10402
 
10430
10403
  /* eslint-disable header/header */
10431
10404
  const name = "@azure/msal-browser";
10432
- const version = "4.0.2";
10405
+ const version = "4.1.0";
10433
10406
 
10434
10407
  /*
10435
10408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14505,6 +14478,7 @@
14505
14478
  popupWindowAttributes: request.popupWindowAttributes || {},
14506
14479
  popupWindowParent: request.popupWindowParent ?? window,
14507
14480
  };
14481
+ this.performanceClient.addFields({ isAsyncPopup: this.config.system.asyncPopups }, this.correlationId);
14508
14482
  // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously.
14509
14483
  if (this.config.system.asyncPopups) {
14510
14484
  this.logger.verbose("asyncPopups set to true, acquiring token");