@azure/msal-browser 2.38.1 → 2.38.2

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 (69) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_tslib.js +1 -1
  3. package/dist/app/ClientApplication.d.ts.map +1 -1
  4. package/dist/app/ClientApplication.js +11 -2
  5. package/dist/app/ClientApplication.js.map +1 -1
  6. package/dist/app/IPublicClientApplication.js +1 -1
  7. package/dist/app/PublicClientApplication.js +1 -1
  8. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  9. package/dist/cache/AsyncMemoryStorage.js +1 -1
  10. package/dist/cache/BrowserCacheManager.d.ts +6 -0
  11. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  12. package/dist/cache/BrowserCacheManager.js +35 -1
  13. package/dist/cache/BrowserCacheManager.js.map +1 -1
  14. package/dist/cache/BrowserStorage.js +1 -1
  15. package/dist/cache/CryptoKeyStore.js +1 -1
  16. package/dist/cache/DatabaseStorage.js +1 -1
  17. package/dist/cache/MemoryStorage.js +1 -1
  18. package/dist/cache/TokenCache.js +1 -1
  19. package/dist/config/Configuration.js +1 -1
  20. package/dist/crypto/BrowserCrypto.js +1 -1
  21. package/dist/crypto/CryptoOps.js +1 -1
  22. package/dist/crypto/GuidGenerator.js +1 -1
  23. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  24. package/dist/crypto/MsBrowserCrypto.js +1 -1
  25. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  26. package/dist/crypto/PkceGenerator.js +1 -1
  27. package/dist/crypto/SignedHttpRequest.js +1 -1
  28. package/dist/encode/Base64Decode.js +1 -1
  29. package/dist/encode/Base64Encode.js +1 -1
  30. package/dist/error/BrowserAuthError.js +1 -1
  31. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  32. package/dist/error/NativeAuthError.js +1 -1
  33. package/dist/event/EventHandler.js +1 -1
  34. package/dist/event/EventMessage.js +1 -1
  35. package/dist/event/EventType.js +1 -1
  36. package/dist/index.cjs.js +110 -63
  37. package/dist/index.cjs.js.map +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  40. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  41. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  42. package/dist/interaction_client/PopupClient.js +1 -1
  43. package/dist/interaction_client/RedirectClient.js +1 -1
  44. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  45. package/dist/interaction_client/SilentCacheClient.js +1 -1
  46. package/dist/interaction_client/SilentIframeClient.js +1 -1
  47. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  48. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  49. package/dist/interaction_handler/InteractionHandler.js +1 -1
  50. package/dist/interaction_handler/RedirectHandler.js +1 -1
  51. package/dist/interaction_handler/SilentHandler.js +1 -1
  52. package/dist/internals.js +1 -1
  53. package/dist/navigation/NavigationClient.js +1 -1
  54. package/dist/network/FetchClient.js +1 -1
  55. package/dist/network/XhrClient.js +1 -1
  56. package/dist/packageMetadata.d.ts +1 -1
  57. package/dist/packageMetadata.js +2 -2
  58. package/dist/packageMetadata.js.map +1 -1
  59. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  60. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  61. package/dist/utils/BrowserConstants.js +1 -1
  62. package/dist/utils/BrowserProtocolUtils.js +1 -1
  63. package/dist/utils/BrowserStringUtils.js +1 -1
  64. package/dist/utils/BrowserUtils.js +1 -1
  65. package/dist/utils/MathUtils.js +1 -1
  66. package/lib/msal-browser.js +110 -63
  67. package/lib/msal-browser.js.map +1 -1
  68. package/lib/msal-browser.min.js +29 -29
  69. package/package.json +95 -95
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from '@azure/msal-common';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { InteractionRequiredAuthError, AuthError } from '@azure/msal-common';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  import { AccountEntity, CacheManager } from '@azure/msal-common';
4
4
  import { EventType } from './EventType.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  import { EventType } from './EventType.js';
4
4
  import { InteractionType, InteractionStatus } from '../utils/BrowserConstants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.38.1 2023-08-07 */
1
+ /*! @azure/msal-browser v2.38.2 2023-08-24 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -117,7 +117,7 @@ function __spread() {
117
117
  return ar;
118
118
  }
119
119
 
120
- /*! @azure/msal-common v13.2.1 2023-08-07 */
120
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
121
121
  /*! *****************************************************************************
122
122
  Copyright (c) Microsoft Corporation.
123
123
 
@@ -204,7 +204,7 @@ function __spreadArrays() {
204
204
  return r;
205
205
  }
206
206
 
207
- /*! @azure/msal-common v13.2.1 2023-08-07 */
207
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
208
208
 
209
209
  /*
210
210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -577,7 +577,7 @@ var JsonTypes;
577
577
  JsonTypes["Pop"] = "pop";
578
578
  })(JsonTypes || (JsonTypes = {}));
579
579
 
580
- /*! @azure/msal-common v13.2.1 2023-08-07 */
580
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
581
581
 
582
582
  /*
583
583
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -633,7 +633,7 @@ var AuthError = /** @class */ (function (_super) {
633
633
  return AuthError;
634
634
  }(Error));
635
635
 
636
- /*! @azure/msal-common v13.2.1 2023-08-07 */
636
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
637
637
 
638
638
  /*
639
639
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -708,7 +708,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
708
708
  }
709
709
  };
710
710
 
711
- /*! @azure/msal-common v13.2.1 2023-08-07 */
711
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
712
712
 
713
713
  /*
714
714
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1223,7 +1223,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1223
1223
  return ClientAuthError;
1224
1224
  }(AuthError));
1225
1225
 
1226
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1226
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1227
1227
 
1228
1228
  /*
1229
1229
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1348,7 +1348,7 @@ var StringUtils = /** @class */ (function () {
1348
1348
  return StringUtils;
1349
1349
  }());
1350
1350
 
1351
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1351
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1352
1352
 
1353
1353
  /*
1354
1354
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1538,12 +1538,12 @@ var Logger = /** @class */ (function () {
1538
1538
  return Logger;
1539
1539
  }());
1540
1540
 
1541
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1541
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1542
1542
  /* eslint-disable header/header */
1543
1543
  var name$1 = "@azure/msal-common";
1544
- var version$1 = "13.2.1";
1544
+ var version$1 = "13.3.0";
1545
1545
 
1546
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1546
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1547
1547
  /*
1548
1548
  * Copyright (c) Microsoft Corporation. All rights reserved.
1549
1549
  * Licensed under the MIT License.
@@ -1564,7 +1564,7 @@ exports.AzureCloudInstance = void 0;
1564
1564
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1565
1565
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1566
1566
 
1567
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1567
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1568
1568
 
1569
1569
  /*
1570
1570
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1829,7 +1829,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1829
1829
  return ClientConfigurationError;
1830
1830
  }(ClientAuthError));
1831
1831
 
1832
- /*! @azure/msal-common v13.2.1 2023-08-07 */
1832
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
1833
1833
 
1834
1834
  /*
1835
1835
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2028,7 +2028,7 @@ var ScopeSet = /** @class */ (function () {
2028
2028
  return ScopeSet;
2029
2029
  }());
2030
2030
 
2031
- /*! @azure/msal-common v13.2.1 2023-08-07 */
2031
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
2032
2032
 
2033
2033
  /*
2034
2034
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2066,7 +2066,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2066
2066
  };
2067
2067
  }
2068
2068
 
2069
- /*! @azure/msal-common v13.2.1 2023-08-07 */
2069
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
2070
2070
  /*
2071
2071
  * Copyright (c) Microsoft Corporation. All rights reserved.
2072
2072
  * Licensed under the MIT License.
@@ -2082,7 +2082,7 @@ var AuthorityType;
2082
2082
  AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
2083
2083
  })(AuthorityType || (AuthorityType = {}));
2084
2084
 
2085
- /*! @azure/msal-common v13.2.1 2023-08-07 */
2085
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
2086
2086
 
2087
2087
  /*
2088
2088
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2321,7 +2321,7 @@ var AccountEntity = /** @class */ (function () {
2321
2321
  return AccountEntity;
2322
2322
  }());
2323
2323
 
2324
- /*! @azure/msal-common v13.2.1 2023-08-07 */
2324
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
2325
2325
 
2326
2326
  /*
2327
2327
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2373,7 +2373,7 @@ var AuthToken = /** @class */ (function () {
2373
2373
  return AuthToken;
2374
2374
  }());
2375
2375
 
2376
- /*! @azure/msal-common v13.2.1 2023-08-07 */
2376
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
2377
2377
 
2378
2378
  /*
2379
2379
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3421,7 +3421,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3421
3421
  return DefaultStorageClass;
3422
3422
  }(CacheManager));
3423
3423
 
3424
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3424
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3425
3425
 
3426
3426
  /*
3427
3427
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3518,7 +3518,7 @@ function buildAuthOptions(authOptions) {
3518
3518
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3519
3519
  }
3520
3520
 
3521
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3521
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3522
3522
 
3523
3523
  /*
3524
3524
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3538,7 +3538,7 @@ var ServerError = /** @class */ (function (_super) {
3538
3538
  return ServerError;
3539
3539
  }(AuthError));
3540
3540
 
3541
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3541
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3542
3542
 
3543
3543
  /*
3544
3544
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3634,7 +3634,7 @@ var ThrottlingUtils = /** @class */ (function () {
3634
3634
  return ThrottlingUtils;
3635
3635
  }());
3636
3636
 
3637
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3637
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3638
3638
 
3639
3639
  /*
3640
3640
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3683,7 +3683,7 @@ var NetworkManager = /** @class */ (function () {
3683
3683
  return NetworkManager;
3684
3684
  }());
3685
3685
 
3686
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3686
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3687
3687
  /*
3688
3688
  * Copyright (c) Microsoft Corporation. All rights reserved.
3689
3689
  * Licensed under the MIT License.
@@ -3694,7 +3694,7 @@ var CcsCredentialType;
3694
3694
  CcsCredentialType["UPN"] = "UPN";
3695
3695
  })(CcsCredentialType || (CcsCredentialType = {}));
3696
3696
 
3697
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3697
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3698
3698
 
3699
3699
  /*
3700
3700
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3785,7 +3785,7 @@ var RequestValidator = /** @class */ (function () {
3785
3785
  return RequestValidator;
3786
3786
  }());
3787
3787
 
3788
- /*! @azure/msal-common v13.2.1 2023-08-07 */
3788
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
3789
3789
 
3790
3790
  /*
3791
3791
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4163,7 +4163,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4163
4163
  return RequestParameterBuilder;
4164
4164
  }());
4165
4165
 
4166
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4166
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4167
4167
 
4168
4168
  /*
4169
4169
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4265,7 +4265,7 @@ var BaseClient = /** @class */ (function () {
4265
4265
  return BaseClient;
4266
4266
  }());
4267
4267
 
4268
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4268
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4269
4269
 
4270
4270
  /*
4271
4271
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4403,7 +4403,7 @@ var CredentialEntity = /** @class */ (function () {
4403
4403
  return CredentialEntity;
4404
4404
  }());
4405
4405
 
4406
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4406
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4407
4407
 
4408
4408
  /*
4409
4409
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4467,7 +4467,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4467
4467
  return IdTokenEntity;
4468
4468
  }(CredentialEntity));
4469
4469
 
4470
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4470
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4471
4471
  /*
4472
4472
  * Copyright (c) Microsoft Corporation. All rights reserved.
4473
4473
  * Licensed under the MIT License.
@@ -4517,7 +4517,7 @@ var TimeUtils = /** @class */ (function () {
4517
4517
  return TimeUtils;
4518
4518
  }());
4519
4519
 
4520
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4520
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4521
4521
 
4522
4522
  /*
4523
4523
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4631,7 +4631,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4631
4631
  return AccessTokenEntity;
4632
4632
  }(CredentialEntity));
4633
4633
 
4634
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4634
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4635
4635
 
4636
4636
  /*
4637
4637
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4698,7 +4698,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4698
4698
  return RefreshTokenEntity;
4699
4699
  }(CredentialEntity));
4700
4700
 
4701
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4701
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4702
4702
 
4703
4703
  /*
4704
4704
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4777,7 +4777,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4777
4777
  return InteractionRequiredAuthError;
4778
4778
  }(AuthError));
4779
4779
 
4780
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4780
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4781
4781
  /*
4782
4782
  * Copyright (c) Microsoft Corporation. All rights reserved.
4783
4783
  * Licensed under the MIT License.
@@ -4793,7 +4793,7 @@ var CacheRecord = /** @class */ (function () {
4793
4793
  return CacheRecord;
4794
4794
  }());
4795
4795
 
4796
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4796
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4797
4797
 
4798
4798
  /*
4799
4799
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4864,7 +4864,7 @@ var ProtocolUtils = /** @class */ (function () {
4864
4864
  return ProtocolUtils;
4865
4865
  }());
4866
4866
 
4867
- /*! @azure/msal-common v13.2.1 2023-08-07 */
4867
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
4868
4868
 
4869
4869
  /*
4870
4870
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5098,7 +5098,7 @@ var UrlString = /** @class */ (function () {
5098
5098
  return UrlString;
5099
5099
  }());
5100
5100
 
5101
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5101
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5102
5102
  /*
5103
5103
  * Copyright (c) Microsoft Corporation. All rights reserved.
5104
5104
  * Licensed under the MIT License.
@@ -5302,6 +5302,10 @@ exports.PerformanceEvents = void 0;
5302
5302
  PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement";
5303
5303
  PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken";
5304
5304
  PerformanceEvents["NativeMessageHandlerHandshake"] = "nativeMessageHandlerHandshake";
5305
+ /**
5306
+ * Cache operations
5307
+ */
5308
+ PerformanceEvents["ClearTokensAndKeysWithClaims"] = "clearTokensAndKeysWithClaims";
5305
5309
  })(exports.PerformanceEvents || (exports.PerformanceEvents = {}));
5306
5310
  /**
5307
5311
  * State of the performance event.
@@ -5327,7 +5331,7 @@ var IntFields = new Set([
5327
5331
  "status",
5328
5332
  ]);
5329
5333
 
5330
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5334
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5331
5335
 
5332
5336
  /*
5333
5337
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5436,7 +5440,7 @@ var PopTokenGenerator = /** @class */ (function () {
5436
5440
  return PopTokenGenerator;
5437
5441
  }());
5438
5442
 
5439
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5443
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5440
5444
 
5441
5445
  /*
5442
5446
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5506,7 +5510,7 @@ var AppMetadataEntity = /** @class */ (function () {
5506
5510
  return AppMetadataEntity;
5507
5511
  }());
5508
5512
 
5509
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5513
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5510
5514
  /*
5511
5515
  * Copyright (c) Microsoft Corporation. All rights reserved.
5512
5516
  * Licensed under the MIT License.
@@ -5542,7 +5546,7 @@ var AppMetadataEntity = /** @class */ (function () {
5542
5546
  return TokenCacheContext;
5543
5547
  }());
5544
5548
 
5545
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5549
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5546
5550
 
5547
5551
  /*
5548
5552
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5829,7 +5833,7 @@ var ResponseHandler = /** @class */ (function () {
5829
5833
  return ResponseHandler;
5830
5834
  }());
5831
5835
 
5832
- /*! @azure/msal-common v13.2.1 2023-08-07 */
5836
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
5833
5837
 
5834
5838
  /*
5835
5839
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6307,7 +6311,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
6307
6311
  return AuthorizationCodeClient;
6308
6312
  }(BaseClient));
6309
6313
 
6310
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6314
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6311
6315
 
6312
6316
  /*
6313
6317
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6581,7 +6585,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
6581
6585
  return RefreshTokenClient;
6582
6586
  }(BaseClient));
6583
6587
 
6584
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6588
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6585
6589
 
6586
6590
  /*
6587
6591
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6711,7 +6715,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
6711
6715
  return SilentFlowClient;
6712
6716
  }(BaseClient));
6713
6717
 
6714
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6718
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6715
6719
  /*
6716
6720
  * Copyright (c) Microsoft Corporation. All rights reserved.
6717
6721
  * Licensed under the MIT License.
@@ -6723,7 +6727,7 @@ function isOpenIdConfigResponse(response) {
6723
6727
  response.hasOwnProperty("jwks_uri"));
6724
6728
  }
6725
6729
 
6726
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6730
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6727
6731
  /*
6728
6732
  * Copyright (c) Microsoft Corporation. All rights reserved.
6729
6733
  * Licensed under the MIT License.
@@ -6732,7 +6736,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
6732
6736
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6733
6737
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6734
6738
 
6735
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6739
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6736
6740
  /*
6737
6741
  * Copyright (c) Microsoft Corporation. All rights reserved.
6738
6742
  * Licensed under the MIT License.
@@ -6746,7 +6750,7 @@ exports.ProtocolMode = void 0;
6746
6750
  ProtocolMode["OIDC"] = "OIDC";
6747
6751
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6748
6752
 
6749
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6753
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6750
6754
 
6751
6755
  /*
6752
6756
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6823,7 +6827,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6823
6827
  return AuthorityMetadataEntity;
6824
6828
  }());
6825
6829
 
6826
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6830
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6827
6831
  /*
6828
6832
  * Copyright (c) Microsoft Corporation. All rights reserved.
6829
6833
  * Licensed under the MIT License.
@@ -6833,7 +6837,7 @@ function isCloudInstanceDiscoveryResponse(response) {
6833
6837
  response.hasOwnProperty("metadata"));
6834
6838
  }
6835
6839
 
6836
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6840
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6837
6841
  /*
6838
6842
  * Copyright (c) Microsoft Corporation. All rights reserved.
6839
6843
  * Licensed under the MIT License.
@@ -6843,7 +6847,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
6843
6847
  response.hasOwnProperty("error_description"));
6844
6848
  }
6845
6849
 
6846
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6850
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6847
6851
 
6848
6852
  /*
6849
6853
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6975,7 +6979,7 @@ var RegionDiscovery = /** @class */ (function () {
6975
6979
  return RegionDiscovery;
6976
6980
  }());
6977
6981
 
6978
- /*! @azure/msal-common v13.2.1 2023-08-07 */
6982
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
6979
6983
 
6980
6984
  /*
6981
6985
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7768,7 +7772,7 @@ var Authority = /** @class */ (function () {
7768
7772
  return Authority;
7769
7773
  }());
7770
7774
 
7771
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7775
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7772
7776
 
7773
7777
  /*
7774
7778
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7832,7 +7836,7 @@ var AuthorityFactory = /** @class */ (function () {
7832
7836
  return AuthorityFactory;
7833
7837
  }());
7834
7838
 
7835
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7839
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7836
7840
 
7837
7841
  /*
7838
7842
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7863,7 +7867,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
7863
7867
  return ServerTelemetryEntity;
7864
7868
  }());
7865
7869
 
7866
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7870
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7867
7871
 
7868
7872
  /*
7869
7873
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7891,7 +7895,7 @@ var ThrottlingEntity = /** @class */ (function () {
7891
7895
  return ThrottlingEntity;
7892
7896
  }());
7893
7897
 
7894
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7898
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7895
7899
 
7896
7900
  /*
7897
7901
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7908,7 +7912,7 @@ var StubbedNetworkModule = {
7908
7912
  }
7909
7913
  };
7910
7914
 
7911
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7915
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7912
7916
 
7913
7917
  /*
7914
7918
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7953,7 +7957,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
7953
7957
  return JoseHeaderError;
7954
7958
  }(AuthError));
7955
7959
 
7956
- /*! @azure/msal-common v13.2.1 2023-08-07 */
7960
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7957
7961
 
7958
7962
  /*
7959
7963
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7993,7 +7997,7 @@ var JoseHeader = /** @class */ (function () {
7993
7997
  return JoseHeader;
7994
7998
  }());
7995
7999
 
7996
- /*! @azure/msal-common v13.2.1 2023-08-07 */
8000
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
7997
8001
 
7998
8002
  /*
7999
8003
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8052,7 +8056,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
8052
8056
  return AuthenticationHeaderParser;
8053
8057
  }());
8054
8058
 
8055
- /*! @azure/msal-common v13.2.1 2023-08-07 */
8059
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
8056
8060
 
8057
8061
  /*
8058
8062
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8214,7 +8218,7 @@ var ServerTelemetryManager = /** @class */ (function () {
8214
8218
  return ServerTelemetryManager;
8215
8219
  }());
8216
8220
 
8217
- /*! @azure/msal-common v13.2.1 2023-08-07 */
8221
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
8218
8222
 
8219
8223
  /*
8220
8224
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8617,7 +8621,7 @@ var PerformanceClient = /** @class */ (function () {
8617
8621
  return PerformanceClient;
8618
8622
  }());
8619
8623
 
8620
- /*! @azure/msal-common v13.2.1 2023-08-07 */
8624
+ /*! @azure/msal-common v13.3.0 2023-08-24 */
8621
8625
 
8622
8626
  /*
8623
8627
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10448,6 +10452,40 @@ var BrowserCacheManager = /** @class */ (function (_super) {
10448
10452
  });
10449
10453
  });
10450
10454
  };
10455
+ /**
10456
+ * Clears all access tokes that have claims prior to saving the current one
10457
+ * @param credential
10458
+ * @returns
10459
+ */
10460
+ BrowserCacheManager.prototype.clearTokensAndKeysWithClaims = function () {
10461
+ return __awaiter$1(this, void 0, void 0, function () {
10462
+ var tokenKeys, removedAccessTokens;
10463
+ var _this = this;
10464
+ return __generator$1(this, function (_a) {
10465
+ switch (_a.label) {
10466
+ case 0:
10467
+ this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called");
10468
+ tokenKeys = this.getTokenKeys();
10469
+ removedAccessTokens = [];
10470
+ tokenKeys.accessToken.forEach(function (key) {
10471
+ // if the access token has claims in its key, remove the token key and the token
10472
+ var credential = _this.getAccessTokenCredential(key);
10473
+ if ((credential === null || credential === void 0 ? void 0 : credential.requestedClaimsHash) && key.includes(credential.requestedClaimsHash.toLowerCase())) {
10474
+ removedAccessTokens.push(_this.removeAccessToken(key));
10475
+ }
10476
+ });
10477
+ return [4 /*yield*/, Promise.all(removedAccessTokens)];
10478
+ case 1:
10479
+ _a.sent();
10480
+ // warn if any access tokens are removed
10481
+ if (removedAccessTokens.length > 0) {
10482
+ this.logger.warning(removedAccessTokens.length + " access tokens with claims in the cache keys have been removed from the cache.");
10483
+ }
10484
+ return [2 /*return*/];
10485
+ }
10486
+ });
10487
+ });
10488
+ };
10451
10489
  /**
10452
10490
  * Add value to cookies
10453
10491
  * @param cookieName
@@ -10843,7 +10881,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
10843
10881
 
10844
10882
  /* eslint-disable header/header */
10845
10883
  var name = "@azure/msal-browser";
10846
- var version = "2.38.1";
10884
+ var version = "2.38.2";
10847
10885
 
10848
10886
  /*
10849
10887
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16709,7 +16747,7 @@ var ClientApplication = /** @class */ (function () {
16709
16747
  */
16710
16748
  ClientApplication.prototype.initialize = function () {
16711
16749
  return __awaiter$1(this, void 0, void 0, function () {
16712
- var allowNativeBroker, initMeasurement, _a, e_1;
16750
+ var allowNativeBroker, initMeasurement, _a, e_1, claimsTokensRemovalMeasurement;
16713
16751
  return __generator$1(this, function (_b) {
16714
16752
  switch (_b.label) {
16715
16753
  case 0:
@@ -16735,6 +16773,15 @@ var ClientApplication = /** @class */ (function () {
16735
16773
  this.logger.verbose(e_1);
16736
16774
  return [3 /*break*/, 4];
16737
16775
  case 4:
16776
+ if (!!this.config.cache.claimsBasedCachingEnabled) return [3 /*break*/, 6];
16777
+ this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
16778
+ claimsTokensRemovalMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.ClearTokensAndKeysWithClaims);
16779
+ return [4 /*yield*/, this.browserStorage.clearTokensAndKeysWithClaims()];
16780
+ case 5:
16781
+ _b.sent();
16782
+ claimsTokensRemovalMeasurement.endMeasurement({ success: true });
16783
+ _b.label = 6;
16784
+ case 6:
16738
16785
  this.initialized = true;
16739
16786
  this.eventHandler.emitEvent(exports.EventType.INITIALIZE_END);
16740
16787
  initMeasurement.endMeasurement({ allowNativeBroker: allowNativeBroker, success: true });