@azure/msal-browser 2.37.1 → 2.38.1

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 (123) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +213 -213
  3. package/dist/_virtual/_tslib.js +1 -1
  4. package/dist/app/ClientApplication.d.ts.map +1 -1
  5. package/dist/app/ClientApplication.js +3 -2
  6. package/dist/app/ClientApplication.js.map +1 -1
  7. package/dist/app/IPublicClientApplication.js +1 -1
  8. package/dist/app/IPublicClientApplication.js.map +1 -1
  9. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  10. package/dist/app/PublicClientApplication.js +5 -3
  11. package/dist/app/PublicClientApplication.js.map +1 -1
  12. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  13. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
  14. package/dist/cache/AsyncMemoryStorage.js +1 -1
  15. package/dist/cache/AsyncMemoryStorage.js.map +1 -1
  16. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  17. package/dist/cache/BrowserCacheManager.js +3 -2
  18. package/dist/cache/BrowserCacheManager.js.map +1 -1
  19. package/dist/cache/BrowserStorage.js +1 -1
  20. package/dist/cache/BrowserStorage.js.map +1 -1
  21. package/dist/cache/CryptoKeyStore.js +1 -1
  22. package/dist/cache/CryptoKeyStore.js.map +1 -1
  23. package/dist/cache/DatabaseStorage.js +1 -1
  24. package/dist/cache/DatabaseStorage.js.map +1 -1
  25. package/dist/cache/MemoryStorage.js +1 -1
  26. package/dist/cache/MemoryStorage.js.map +1 -1
  27. package/dist/cache/TokenCache.js +1 -1
  28. package/dist/cache/TokenCache.js.map +1 -1
  29. package/dist/config/Configuration.d.ts +4 -0
  30. package/dist/config/Configuration.d.ts.map +1 -1
  31. package/dist/config/Configuration.js +3 -2
  32. package/dist/config/Configuration.js.map +1 -1
  33. package/dist/crypto/BrowserCrypto.js +1 -1
  34. package/dist/crypto/BrowserCrypto.js.map +1 -1
  35. package/dist/crypto/CryptoOps.js +1 -1
  36. package/dist/crypto/CryptoOps.js.map +1 -1
  37. package/dist/crypto/GuidGenerator.js +1 -1
  38. package/dist/crypto/GuidGenerator.js.map +1 -1
  39. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  40. package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
  41. package/dist/crypto/MsBrowserCrypto.js +1 -1
  42. package/dist/crypto/MsBrowserCrypto.js.map +1 -1
  43. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  44. package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
  45. package/dist/crypto/PkceGenerator.js +1 -1
  46. package/dist/crypto/PkceGenerator.js.map +1 -1
  47. package/dist/crypto/SignedHttpRequest.js +1 -1
  48. package/dist/crypto/SignedHttpRequest.js.map +1 -1
  49. package/dist/encode/Base64Decode.js +1 -1
  50. package/dist/encode/Base64Decode.js.map +1 -1
  51. package/dist/encode/Base64Encode.js +1 -1
  52. package/dist/encode/Base64Encode.js.map +1 -1
  53. package/dist/error/BrowserAuthError.js +1 -1
  54. package/dist/error/BrowserAuthError.js.map +1 -1
  55. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  56. package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
  57. package/dist/error/NativeAuthError.js +1 -1
  58. package/dist/error/NativeAuthError.js.map +1 -1
  59. package/dist/event/EventHandler.js +1 -1
  60. package/dist/event/EventHandler.js.map +1 -1
  61. package/dist/event/EventMessage.js +1 -1
  62. package/dist/event/EventMessage.js.map +1 -1
  63. package/dist/event/EventType.js +1 -1
  64. package/dist/event/EventType.js.map +1 -1
  65. package/dist/index.cjs.js +116 -104
  66. package/dist/index.cjs.js.map +1 -1
  67. package/dist/index.js +1 -1
  68. package/dist/interaction_client/BaseInteractionClient.js +2 -2
  69. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  70. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  71. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
  72. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  73. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  74. package/dist/interaction_client/PopupClient.js +1 -1
  75. package/dist/interaction_client/PopupClient.js.map +1 -1
  76. package/dist/interaction_client/RedirectClient.js +1 -1
  77. package/dist/interaction_client/RedirectClient.js.map +1 -1
  78. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  79. package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
  80. package/dist/interaction_client/SilentCacheClient.js +1 -1
  81. package/dist/interaction_client/SilentCacheClient.js.map +1 -1
  82. package/dist/interaction_client/SilentIframeClient.js +1 -1
  83. package/dist/interaction_client/SilentIframeClient.js.map +1 -1
  84. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  85. package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
  86. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  87. package/dist/interaction_client/StandardInteractionClient.js +4 -1
  88. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  89. package/dist/interaction_handler/InteractionHandler.js +1 -1
  90. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  91. package/dist/interaction_handler/RedirectHandler.js +1 -1
  92. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  93. package/dist/interaction_handler/SilentHandler.js +1 -1
  94. package/dist/interaction_handler/SilentHandler.js.map +1 -1
  95. package/dist/internals.js +1 -1
  96. package/dist/internals.js.map +1 -1
  97. package/dist/navigation/NavigationClient.js +1 -1
  98. package/dist/navigation/NavigationClient.js.map +1 -1
  99. package/dist/network/FetchClient.js +1 -1
  100. package/dist/network/FetchClient.js.map +1 -1
  101. package/dist/network/XhrClient.js +1 -1
  102. package/dist/network/XhrClient.js.map +1 -1
  103. package/dist/packageMetadata.d.ts +1 -1
  104. package/dist/packageMetadata.js +2 -2
  105. package/dist/packageMetadata.js.map +1 -1
  106. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  107. package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
  108. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  109. package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
  110. package/dist/utils/BrowserConstants.js +1 -1
  111. package/dist/utils/BrowserConstants.js.map +1 -1
  112. package/dist/utils/BrowserProtocolUtils.js +1 -1
  113. package/dist/utils/BrowserProtocolUtils.js.map +1 -1
  114. package/dist/utils/BrowserStringUtils.js +1 -1
  115. package/dist/utils/BrowserStringUtils.js.map +1 -1
  116. package/dist/utils/BrowserUtils.js +1 -1
  117. package/dist/utils/BrowserUtils.js.map +1 -1
  118. package/dist/utils/MathUtils.js +1 -1
  119. package/dist/utils/MathUtils.js.map +1 -1
  120. package/lib/msal-browser.js +116 -104
  121. package/lib/msal-browser.js.map +1 -1
  122. package/lib/msal-browser.min.js +39 -39
  123. package/package.json +95 -95
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.37.1 2023-06-07 */
1
+ /*! @azure/msal-browser v2.38.1 2023-08-07 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -119,7 +119,7 @@
119
119
  return ar;
120
120
  }
121
121
 
122
- /*! @azure/msal-common v13.1.0 2023-06-07 */
122
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
123
123
  /*! *****************************************************************************
124
124
  Copyright (c) Microsoft Corporation.
125
125
 
@@ -206,7 +206,7 @@
206
206
  return r;
207
207
  }
208
208
 
209
- /*! @azure/msal-common v13.1.0 2023-06-07 */
209
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
210
210
 
211
211
  /*
212
212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -570,6 +570,7 @@
570
570
  CacheOutcome["NO_CACHED_ACCESS_TOKEN"] = "2";
571
571
  CacheOutcome["CACHED_ACCESS_TOKEN_EXPIRED"] = "3";
572
572
  CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4";
573
+ CacheOutcome["CLAIMS_REQUESTED_CACHE_SKIPPED"] = "5";
573
574
  })(CacheOutcome || (CacheOutcome = {}));
574
575
  var JsonTypes;
575
576
  (function (JsonTypes) {
@@ -578,7 +579,7 @@
578
579
  JsonTypes["Pop"] = "pop";
579
580
  })(JsonTypes || (JsonTypes = {}));
580
581
 
581
- /*! @azure/msal-common v13.1.0 2023-06-07 */
582
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
582
583
 
583
584
  /*
584
585
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -634,7 +635,7 @@
634
635
  return AuthError;
635
636
  }(Error));
636
637
 
637
- /*! @azure/msal-common v13.1.0 2023-06-07 */
638
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
638
639
 
639
640
  /*
640
641
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -709,7 +710,7 @@
709
710
  }
710
711
  };
711
712
 
712
- /*! @azure/msal-common v13.1.0 2023-06-07 */
713
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
713
714
 
714
715
  /*
715
716
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1224,7 +1225,7 @@
1224
1225
  return ClientAuthError;
1225
1226
  }(AuthError));
1226
1227
 
1227
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1228
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1228
1229
 
1229
1230
  /*
1230
1231
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1349,7 +1350,7 @@
1349
1350
  return StringUtils;
1350
1351
  }());
1351
1352
 
1352
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1353
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1353
1354
 
1354
1355
  /*
1355
1356
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1539,12 +1540,12 @@
1539
1540
  return Logger;
1540
1541
  }());
1541
1542
 
1542
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1543
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1543
1544
  /* eslint-disable header/header */
1544
1545
  var name$1 = "@azure/msal-common";
1545
- var version$1 = "13.1.0";
1546
+ var version$1 = "13.2.1";
1546
1547
 
1547
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1548
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1548
1549
  /*
1549
1550
  * Copyright (c) Microsoft Corporation. All rights reserved.
1550
1551
  * Licensed under the MIT License.
@@ -1565,7 +1566,7 @@
1565
1566
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1566
1567
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1567
1568
 
1568
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1569
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1569
1570
 
1570
1571
  /*
1571
1572
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1830,7 +1831,7 @@
1830
1831
  return ClientConfigurationError;
1831
1832
  }(ClientAuthError));
1832
1833
 
1833
- /*! @azure/msal-common v13.1.0 2023-06-07 */
1834
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
1834
1835
 
1835
1836
  /*
1836
1837
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2029,7 +2030,7 @@
2029
2030
  return ScopeSet;
2030
2031
  }());
2031
2032
 
2032
- /*! @azure/msal-common v13.1.0 2023-06-07 */
2033
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
2033
2034
 
2034
2035
  /*
2035
2036
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2067,7 +2068,7 @@
2067
2068
  };
2068
2069
  }
2069
2070
 
2070
- /*! @azure/msal-common v13.1.0 2023-06-07 */
2071
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
2071
2072
  /*
2072
2073
  * Copyright (c) Microsoft Corporation. All rights reserved.
2073
2074
  * Licensed under the MIT License.
@@ -2083,7 +2084,7 @@
2083
2084
  AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
2084
2085
  })(AuthorityType || (AuthorityType = {}));
2085
2086
 
2086
- /*! @azure/msal-common v13.1.0 2023-06-07 */
2087
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
2087
2088
 
2088
2089
  /*
2089
2090
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2322,7 +2323,7 @@
2322
2323
  return AccountEntity;
2323
2324
  }());
2324
2325
 
2325
- /*! @azure/msal-common v13.1.0 2023-06-07 */
2326
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
2326
2327
 
2327
2328
  /*
2328
2329
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2374,7 +2375,7 @@
2374
2375
  return AuthToken;
2375
2376
  }());
2376
2377
 
2377
- /*! @azure/msal-common v13.1.0 2023-06-07 */
2378
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
2378
2379
 
2379
2380
  /*
2380
2381
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3422,7 +3423,7 @@
3422
3423
  return DefaultStorageClass;
3423
3424
  }(CacheManager));
3424
3425
 
3425
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3426
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3426
3427
 
3427
3428
  /*
3428
3429
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3442,6 +3443,9 @@
3442
3443
  logLevel: exports.LogLevel.Info,
3443
3444
  correlationId: Constants.EMPTY_STRING
3444
3445
  };
3446
+ var DEFAULT_CACHE_OPTIONS = {
3447
+ claimsBasedCachingEnabled: true
3448
+ };
3445
3449
  var DEFAULT_NETWORK_IMPLEMENTATION = {
3446
3450
  sendGetRequestAsync: function () {
3447
3451
  return __awaiter(this, void 0, void 0, function () {
@@ -3490,12 +3494,13 @@
3490
3494
  * @returns Configuration
3491
3495
  */
3492
3496
  function buildClientConfiguration(_a) {
3493
- var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;
3497
+ var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, userCacheOptions = _a.cacheOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;
3494
3498
  var loggerOptions = __assign(__assign({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption);
3495
3499
  return {
3496
3500
  authOptions: buildAuthOptions(userAuthOptions),
3497
3501
  systemOptions: __assign(__assign({}, DEFAULT_SYSTEM_OPTIONS), userSystemOptions),
3498
3502
  loggerOptions: loggerOptions,
3503
+ cacheOptions: __assign(__assign({}, DEFAULT_CACHE_OPTIONS), userCacheOptions),
3499
3504
  storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
3500
3505
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
3501
3506
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
@@ -3515,7 +3520,7 @@
3515
3520
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3516
3521
  }
3517
3522
 
3518
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3523
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3519
3524
 
3520
3525
  /*
3521
3526
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3535,7 +3540,7 @@
3535
3540
  return ServerError;
3536
3541
  }(AuthError));
3537
3542
 
3538
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3543
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3539
3544
 
3540
3545
  /*
3541
3546
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3631,7 +3636,7 @@
3631
3636
  return ThrottlingUtils;
3632
3637
  }());
3633
3638
 
3634
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3639
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3635
3640
 
3636
3641
  /*
3637
3642
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3680,7 +3685,7 @@
3680
3685
  return NetworkManager;
3681
3686
  }());
3682
3687
 
3683
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3688
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3684
3689
  /*
3685
3690
  * Copyright (c) Microsoft Corporation. All rights reserved.
3686
3691
  * Licensed under the MIT License.
@@ -3691,7 +3696,7 @@
3691
3696
  CcsCredentialType["UPN"] = "UPN";
3692
3697
  })(CcsCredentialType || (CcsCredentialType = {}));
3693
3698
 
3694
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3699
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3695
3700
 
3696
3701
  /*
3697
3702
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3782,7 +3787,7 @@
3782
3787
  return RequestValidator;
3783
3788
  }());
3784
3789
 
3785
- /*! @azure/msal-common v13.1.0 2023-06-07 */
3790
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
3786
3791
 
3787
3792
  /*
3788
3793
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4160,7 +4165,7 @@
4160
4165
  return RequestParameterBuilder;
4161
4166
  }());
4162
4167
 
4163
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4168
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4164
4169
 
4165
4170
  /*
4166
4171
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4262,7 +4267,7 @@
4262
4267
  return BaseClient;
4263
4268
  }());
4264
4269
 
4265
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4270
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4266
4271
 
4267
4272
  /*
4268
4273
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4400,7 +4405,7 @@
4400
4405
  return CredentialEntity;
4401
4406
  }());
4402
4407
 
4403
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4408
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4404
4409
 
4405
4410
  /*
4406
4411
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4464,7 +4469,7 @@
4464
4469
  return IdTokenEntity;
4465
4470
  }(CredentialEntity));
4466
4471
 
4467
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4472
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4468
4473
  /*
4469
4474
  * Copyright (c) Microsoft Corporation. All rights reserved.
4470
4475
  * Licensed under the MIT License.
@@ -4514,7 +4519,7 @@
4514
4519
  return TimeUtils;
4515
4520
  }());
4516
4521
 
4517
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4522
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4518
4523
 
4519
4524
  /*
4520
4525
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4628,7 +4633,7 @@
4628
4633
  return AccessTokenEntity;
4629
4634
  }(CredentialEntity));
4630
4635
 
4631
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4636
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4632
4637
 
4633
4638
  /*
4634
4639
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4695,7 +4700,7 @@
4695
4700
  return RefreshTokenEntity;
4696
4701
  }(CredentialEntity));
4697
4702
 
4698
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4703
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4699
4704
 
4700
4705
  /*
4701
4706
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4774,7 +4779,7 @@
4774
4779
  return InteractionRequiredAuthError;
4775
4780
  }(AuthError));
4776
4781
 
4777
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4782
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4778
4783
  /*
4779
4784
  * Copyright (c) Microsoft Corporation. All rights reserved.
4780
4785
  * Licensed under the MIT License.
@@ -4790,7 +4795,7 @@
4790
4795
  return CacheRecord;
4791
4796
  }());
4792
4797
 
4793
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4798
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4794
4799
 
4795
4800
  /*
4796
4801
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4861,7 +4866,7 @@
4861
4866
  return ProtocolUtils;
4862
4867
  }());
4863
4868
 
4864
- /*! @azure/msal-common v13.1.0 2023-06-07 */
4869
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
4865
4870
 
4866
4871
  /*
4867
4872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5095,7 +5100,7 @@
5095
5100
  return UrlString;
5096
5101
  }());
5097
5102
 
5098
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5103
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5099
5104
  /*
5100
5105
  * Copyright (c) Microsoft Corporation. All rights reserved.
5101
5106
  * Licensed under the MIT License.
@@ -5324,7 +5329,7 @@
5324
5329
  "status",
5325
5330
  ]);
5326
5331
 
5327
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5332
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5328
5333
 
5329
5334
  /*
5330
5335
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5433,7 +5438,7 @@
5433
5438
  return PopTokenGenerator;
5434
5439
  }());
5435
5440
 
5436
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5441
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5437
5442
 
5438
5443
  /*
5439
5444
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5503,7 +5508,7 @@
5503
5508
  return AppMetadataEntity;
5504
5509
  }());
5505
5510
 
5506
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5511
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5507
5512
  /*
5508
5513
  * Copyright (c) Microsoft Corporation. All rights reserved.
5509
5514
  * Licensed under the MIT License.
@@ -5539,7 +5544,7 @@
5539
5544
  return TokenCacheContext;
5540
5545
  }());
5541
5546
 
5542
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5547
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5543
5548
 
5544
5549
  /*
5545
5550
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5826,7 +5831,7 @@
5826
5831
  return ResponseHandler;
5827
5832
  }());
5828
5833
 
5829
- /*! @azure/msal-common v13.1.0 2023-06-07 */
5834
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
5830
5835
 
5831
5836
  /*
5832
5837
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6304,7 +6309,7 @@
6304
6309
  return AuthorizationCodeClient;
6305
6310
  }(BaseClient));
6306
6311
 
6307
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6312
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6308
6313
 
6309
6314
  /*
6310
6315
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6578,7 +6583,7 @@
6578
6583
  return RefreshTokenClient;
6579
6584
  }(BaseClient));
6580
6585
 
6581
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6586
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6582
6587
 
6583
6588
  /*
6584
6589
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6622,11 +6627,11 @@
6622
6627
  * @param request
6623
6628
  */
6624
6629
  SilentFlowClient.prototype.acquireCachedToken = function (request) {
6625
- var _a, _b, _c, _d;
6630
+ var _a, _b, _c, _d, _e;
6626
6631
  return __awaiter(this, void 0, void 0, function () {
6627
6632
  var environment, cacheRecord;
6628
- return __generator(this, function (_e) {
6629
- switch (_e.label) {
6633
+ return __generator(this, function (_f) {
6634
+ switch (_f.label) {
6630
6635
  case 0:
6631
6636
  // Cannot renew token if no request object is given.
6632
6637
  if (!request) {
@@ -6638,6 +6643,12 @@
6638
6643
  this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.");
6639
6644
  throw ClientAuthError.createRefreshRequiredError();
6640
6645
  }
6646
+ else if (!this.config.cacheOptions.claimsBasedCachingEnabled && !StringUtils.isEmptyObj(request.claims)) {
6647
+ // Must refresh due to presence of claims in request preventing cache lookup
6648
+ (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(CacheOutcome.CLAIMS_REQUESTED_CACHE_SKIPPED);
6649
+ this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested.");
6650
+ throw ClientAuthError.createRefreshRequiredError();
6651
+ }
6641
6652
  // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
6642
6653
  if (!request.account) {
6643
6654
  throw ClientAuthError.createNoAccountInSilentRequestError();
@@ -6646,20 +6657,20 @@
6646
6657
  cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment);
6647
6658
  if (!cacheRecord.accessToken) {
6648
6659
  // Must refresh due to non-existent access_token.
6649
- (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
6660
+ (_c = this.serverTelemetryManager) === null || _c === void 0 ? void 0 : _c.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
6650
6661
  this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
6651
6662
  throw ClientAuthError.createRefreshRequiredError();
6652
6663
  }
6653
6664
  else if (TimeUtils.wasClockTurnedBack(cacheRecord.accessToken.cachedAt) ||
6654
6665
  TimeUtils.isTokenExpired(cacheRecord.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
6655
6666
  // Must refresh due to expired access_token.
6656
- (_c = this.serverTelemetryManager) === null || _c === void 0 ? void 0 : _c.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
6667
+ (_d = this.serverTelemetryManager) === null || _d === void 0 ? void 0 : _d.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
6657
6668
  this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds.");
6658
6669
  throw ClientAuthError.createRefreshRequiredError();
6659
6670
  }
6660
6671
  else if (cacheRecord.accessToken.refreshOn && TimeUtils.isTokenExpired(cacheRecord.accessToken.refreshOn, 0)) {
6661
6672
  // Must refresh due to the refresh_in value.
6662
- (_d = this.serverTelemetryManager) === null || _d === void 0 ? void 0 : _d.setCacheOutcome(CacheOutcome.REFRESH_CACHED_ACCESS_TOKEN);
6673
+ (_e = this.serverTelemetryManager) === null || _e === void 0 ? void 0 : _e.setCacheOutcome(CacheOutcome.REFRESH_CACHED_ACCESS_TOKEN);
6663
6674
  this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'.");
6664
6675
  throw ClientAuthError.createRefreshRequiredError();
6665
6676
  }
@@ -6667,7 +6678,7 @@
6667
6678
  this.config.serverTelemetryManager.incrementCacheHits();
6668
6679
  }
6669
6680
  return [4 /*yield*/, this.generateResultFromCacheRecord(cacheRecord, request)];
6670
- case 1: return [2 /*return*/, _e.sent()];
6681
+ case 1: return [2 /*return*/, _f.sent()];
6671
6682
  }
6672
6683
  });
6673
6684
  });
@@ -6702,7 +6713,7 @@
6702
6713
  return SilentFlowClient;
6703
6714
  }(BaseClient));
6704
6715
 
6705
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6716
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6706
6717
  /*
6707
6718
  * Copyright (c) Microsoft Corporation. All rights reserved.
6708
6719
  * Licensed under the MIT License.
@@ -6714,7 +6725,7 @@
6714
6725
  response.hasOwnProperty("jwks_uri"));
6715
6726
  }
6716
6727
 
6717
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6728
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6718
6729
  /*
6719
6730
  * Copyright (c) Microsoft Corporation. All rights reserved.
6720
6731
  * Licensed under the MIT License.
@@ -6723,7 +6734,7 @@
6723
6734
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6724
6735
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6725
6736
 
6726
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6737
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6727
6738
  /*
6728
6739
  * Copyright (c) Microsoft Corporation. All rights reserved.
6729
6740
  * Licensed under the MIT License.
@@ -6737,7 +6748,7 @@
6737
6748
  ProtocolMode["OIDC"] = "OIDC";
6738
6749
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6739
6750
 
6740
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6751
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6741
6752
 
6742
6753
  /*
6743
6754
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6814,7 +6825,7 @@
6814
6825
  return AuthorityMetadataEntity;
6815
6826
  }());
6816
6827
 
6817
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6828
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6818
6829
  /*
6819
6830
  * Copyright (c) Microsoft Corporation. All rights reserved.
6820
6831
  * Licensed under the MIT License.
@@ -6824,7 +6835,7 @@
6824
6835
  response.hasOwnProperty("metadata"));
6825
6836
  }
6826
6837
 
6827
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6838
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6828
6839
  /*
6829
6840
  * Copyright (c) Microsoft Corporation. All rights reserved.
6830
6841
  * Licensed under the MIT License.
@@ -6834,7 +6845,7 @@
6834
6845
  response.hasOwnProperty("error_description"));
6835
6846
  }
6836
6847
 
6837
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6848
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6838
6849
 
6839
6850
  /*
6840
6851
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6966,7 +6977,7 @@
6966
6977
  return RegionDiscovery;
6967
6978
  }());
6968
6979
 
6969
- /*! @azure/msal-common v13.1.0 2023-06-07 */
6980
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
6970
6981
 
6971
6982
  /*
6972
6983
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7407,42 +7418,35 @@
7407
7418
  };
7408
7419
  /**
7409
7420
  * Update the retrieved metadata with regional information.
7421
+ * User selected Azure region will be used if configured.
7410
7422
  */
7411
7423
  Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) {
7412
- var _a, _b, _c, _d, _e, _f, _g;
7424
+ var _a, _b, _c, _d;
7413
7425
  return __awaiter(this, void 0, void 0, function () {
7414
- var autodetectedRegionName, azureRegion;
7415
- return __generator(this, function (_h) {
7416
- switch (_h.label) {
7426
+ var userConfiguredAzureRegion, autodetectedRegionName;
7427
+ return __generator(this, function (_e) {
7428
+ switch (_e.label) {
7417
7429
  case 0:
7418
7430
  (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(exports.PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
7419
- (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(exports.PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
7420
- return [4 /*yield*/, this.regionDiscovery.detectRegion((_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.environmentRegion, this.regionDiscoveryMetadata)];
7421
- case 1:
7422
- autodetectedRegionName = _h.sent();
7423
- azureRegion = ((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
7424
- ? autodetectedRegionName
7425
- : (_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion;
7426
- if (((_f = this.authorityOptions.azureRegionConfiguration) === null || _f === void 0 ? void 0 : _f.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
7427
- this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?
7428
- RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :
7429
- RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
7430
- }
7431
- else {
7432
- if (autodetectedRegionName) {
7433
- this.regionDiscoveryMetadata.region_outcome = (((_g = this.authorityOptions.azureRegionConfiguration) === null || _g === void 0 ? void 0 : _g.azureRegion) === autodetectedRegionName) ?
7434
- RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :
7435
- RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
7436
- }
7437
- else {
7438
- this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
7439
- }
7431
+ userConfiguredAzureRegion = (_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion;
7432
+ if (!userConfiguredAzureRegion) return [3 /*break*/, 2];
7433
+ if (userConfiguredAzureRegion !== Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
7434
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
7435
+ this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion;
7436
+ return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion)];
7440
7437
  }
7441
- if (azureRegion) {
7442
- this.regionDiscoveryMetadata.region_used = azureRegion;
7443
- return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, azureRegion)];
7438
+ (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(exports.PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
7439
+ return [4 /*yield*/, this.regionDiscovery.detectRegion((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.environmentRegion, this.regionDiscoveryMetadata)];
7440
+ case 1:
7441
+ autodetectedRegionName = _e.sent();
7442
+ if (autodetectedRegionName) {
7443
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL;
7444
+ this.regionDiscoveryMetadata.region_used = autodetectedRegionName;
7445
+ return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, autodetectedRegionName)];
7444
7446
  }
7445
- return [2 /*return*/, metadata];
7447
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
7448
+ _e.label = 2;
7449
+ case 2: return [2 /*return*/, metadata];
7446
7450
  }
7447
7451
  });
7448
7452
  });
@@ -7766,7 +7770,7 @@
7766
7770
  return Authority;
7767
7771
  }());
7768
7772
 
7769
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7773
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7770
7774
 
7771
7775
  /*
7772
7776
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7830,7 +7834,7 @@
7830
7834
  return AuthorityFactory;
7831
7835
  }());
7832
7836
 
7833
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7837
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7834
7838
 
7835
7839
  /*
7836
7840
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7861,7 +7865,7 @@
7861
7865
  return ServerTelemetryEntity;
7862
7866
  }());
7863
7867
 
7864
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7868
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7865
7869
 
7866
7870
  /*
7867
7871
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7889,7 +7893,7 @@
7889
7893
  return ThrottlingEntity;
7890
7894
  }());
7891
7895
 
7892
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7896
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7893
7897
 
7894
7898
  /*
7895
7899
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7906,7 +7910,7 @@
7906
7910
  }
7907
7911
  };
7908
7912
 
7909
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7913
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7910
7914
 
7911
7915
  /*
7912
7916
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7951,7 +7955,7 @@
7951
7955
  return JoseHeaderError;
7952
7956
  }(AuthError));
7953
7957
 
7954
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7958
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7955
7959
 
7956
7960
  /*
7957
7961
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7991,7 +7995,7 @@
7991
7995
  return JoseHeader;
7992
7996
  }());
7993
7997
 
7994
- /*! @azure/msal-common v13.1.0 2023-06-07 */
7998
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
7995
7999
 
7996
8000
  /*
7997
8001
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8050,7 +8054,7 @@
8050
8054
  return AuthenticationHeaderParser;
8051
8055
  }());
8052
8056
 
8053
- /*! @azure/msal-common v13.1.0 2023-06-07 */
8057
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
8054
8058
 
8055
8059
  /*
8056
8060
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8212,7 +8216,7 @@
8212
8216
  return ServerTelemetryManager;
8213
8217
  }());
8214
8218
 
8215
- /*! @azure/msal-common v13.1.0 2023-06-07 */
8219
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
8216
8220
 
8217
8221
  /*
8218
8222
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8615,7 +8619,7 @@
8615
8619
  return PerformanceClient;
8616
8620
  }());
8617
8621
 
8618
- /*! @azure/msal-common v13.1.0 2023-06-07 */
8622
+ /*! @azure/msal-common v13.2.1 2023-08-07 */
8619
8623
 
8620
8624
  /*
8621
8625
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10833,14 +10837,15 @@
10833
10837
  temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
10834
10838
  storeAuthStateInCookie: false,
10835
10839
  secureCookies: false,
10836
- cacheMigrationEnabled: false
10840
+ cacheMigrationEnabled: false,
10841
+ claimsBasedCachingEnabled: true
10837
10842
  };
10838
10843
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger);
10839
10844
  };
10840
10845
 
10841
10846
  /* eslint-disable header/header */
10842
10847
  var name = "@azure/msal-browser";
10843
- var version = "2.37.1";
10848
+ var version = "2.38.1";
10844
10849
 
10845
10850
  /*
10846
10851
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11339,7 +11344,7 @@
11339
11344
  }
11340
11345
  this.logger.verbose("Authentication Scheme set to \"" + validatedRequest.authenticationScheme + "\" as configured in Auth request");
11341
11346
  }
11342
- if (!(request.claims && !StringUtils.isEmpty(request.claims))) return [3 /*break*/, 4];
11347
+ if (!(this.config.cache.claimsBasedCachingEnabled && request.claims && !StringUtils.isEmptyObj(request.claims))) return [3 /*break*/, 4];
11343
11348
  _a = validatedRequest;
11344
11349
  return [4 /*yield*/, this.browserCrypto.hashString(request.claims)];
11345
11350
  case 3:
@@ -11603,6 +11608,9 @@
11603
11608
  logLevel: logger.logLevel,
11604
11609
  correlationId: this.correlationId
11605
11610
  },
11611
+ cacheOptions: {
11612
+ claimsBasedCachingEnabled: this.config.cache.claimsBasedCachingEnabled
11613
+ },
11606
11614
  cryptoInterface: this.browserCrypto,
11607
11615
  networkInterface: this.networkClient,
11608
11616
  storageInterface: this.browserStorage,
@@ -14003,7 +14011,8 @@
14003
14011
  storeAuthStateInCookie: false,
14004
14012
  secureCookies: false,
14005
14013
  // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
14006
- cacheMigrationEnabled: userInputCache && userInputCache.cacheLocation === exports.BrowserCacheLocation.LocalStorage ? true : false
14014
+ cacheMigrationEnabled: userInputCache && userInputCache.cacheLocation === exports.BrowserCacheLocation.LocalStorage ? true : false,
14015
+ claimsBasedCachingEnabled: true
14007
14016
  };
14008
14017
  // Default logger options for browser
14009
14018
  var DEFAULT_LOGGER_OPTIONS = {
@@ -16688,7 +16697,8 @@
16688
16697
  temporaryCacheLocation: exports.BrowserCacheLocation.MemoryStorage,
16689
16698
  storeAuthStateInCookie: false,
16690
16699
  secureCookies: false,
16691
- cacheMigrationEnabled: false
16700
+ cacheMigrationEnabled: false,
16701
+ claimsBasedCachingEnabled: true
16692
16702
  };
16693
16703
  this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger);
16694
16704
  // Initialize the token cache
@@ -17865,13 +17875,15 @@
17865
17875
  return _this.acquireTokenByRefreshToken(silentRequest_1, requestWithCLP_1).catch(function (refreshTokenError) {
17866
17876
  var isServerError = refreshTokenError instanceof ServerError;
17867
17877
  var isInteractionRequiredError = refreshTokenError instanceof InteractionRequiredAuthError;
17878
+ var rtNotFound = (refreshTokenError.errorCode === InteractionRequiredAuthErrorMessage.noTokensFoundError.code);
17868
17879
  var isInvalidGrantError = (refreshTokenError.errorCode === BrowserConstants.INVALID_GRANT_ERROR);
17869
17880
  if ((!isServerError ||
17870
17881
  !isInvalidGrantError ||
17871
17882
  isInteractionRequiredError ||
17872
17883
  requestWithCLP_1.cacheLookupPolicy === exports.CacheLookupPolicy.AccessTokenAndRefreshToken ||
17873
17884
  requestWithCLP_1.cacheLookupPolicy === exports.CacheLookupPolicy.RefreshToken)
17874
- && (requestWithCLP_1.cacheLookupPolicy !== exports.CacheLookupPolicy.Skip)) {
17885
+ && (requestWithCLP_1.cacheLookupPolicy !== exports.CacheLookupPolicy.Skip)
17886
+ && !rtNotFound) {
17875
17887
  throw refreshTokenError;
17876
17888
  }
17877
17889
  _this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", request.correlationId);