@azure/msal-node 2.16.0 → 2.16.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 (53) hide show
  1. package/dist/cache/NodeStorage.mjs +1 -1
  2. package/dist/cache/TokenCache.mjs +2 -2
  3. package/dist/cache/TokenCache.mjs.map +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +7 -3
  6. package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
  7. package/dist/cache/serializer/Deserializer.mjs +1 -1
  8. package/dist/cache/serializer/Serializer.mjs +1 -1
  9. package/dist/client/ClientApplication.mjs +1 -1
  10. package/dist/client/ClientAssertion.mjs +1 -1
  11. package/dist/client/ClientCredentialClient.mjs +1 -1
  12. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  13. package/dist/client/DeviceCodeClient.mjs +1 -1
  14. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  15. package/dist/client/ManagedIdentityClient.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  22. package/dist/client/OnBehalfOfClient.mjs +1 -1
  23. package/dist/client/PublicClientApplication.mjs +1 -1
  24. package/dist/client/UsernamePasswordClient.mjs +1 -1
  25. package/dist/config/Configuration.mjs +1 -1
  26. package/dist/config/ManagedIdentityId.mjs +1 -1
  27. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  28. package/dist/crypto/CryptoProvider.mjs +1 -1
  29. package/dist/crypto/GuidGenerator.mjs +1 -1
  30. package/dist/crypto/HashUtils.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/error/ManagedIdentityError.mjs +1 -1
  33. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  34. package/dist/error/NodeAuthError.mjs +1 -1
  35. package/dist/index.mjs +1 -1
  36. package/dist/internals.mjs +1 -1
  37. package/dist/network/HttpClient.mjs +1 -1
  38. package/dist/network/HttpClientWithRetries.mjs +1 -1
  39. package/dist/network/LoopbackClient.mjs +1 -1
  40. package/dist/packageMetadata.d.ts +1 -1
  41. package/dist/packageMetadata.mjs +2 -2
  42. package/dist/retry/LinearRetryPolicy.mjs +1 -1
  43. package/dist/utils/Constants.mjs +1 -1
  44. package/dist/utils/EncodingUtils.mjs +1 -1
  45. package/dist/utils/NetworkUtils.mjs +1 -1
  46. package/lib/msal-node.cjs +65 -61
  47. package/lib/msal-node.cjs.map +1 -1
  48. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  49. package/lib/types/packageMetadata.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/src/cache/TokenCache.ts +1 -1
  52. package/src/cache/distributed/DistributedCachePlugin.ts +9 -6
  53. package/src/packageMetadata.ts +1 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.16.0 2024-11-05 */
1
+ /*! @azure/msal-node v2.16.2 2024-11-19 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -152,7 +152,7 @@ class Serializer {
152
152
  }
153
153
  }
154
154
 
155
- /*! @azure/msal-common v14.16.0 2024-11-05 */
155
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
156
156
  /*
157
157
  * Copyright (c) Microsoft Corporation. All rights reserved.
158
158
  * Licensed under the MIT License.
@@ -445,7 +445,7 @@ const CacheOutcome = {
445
445
  // Token renewal offset default in seconds
446
446
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
447
447
 
448
- /*! @azure/msal-common v14.16.0 2024-11-05 */
448
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
449
449
  /*
450
450
  * Copyright (c) Microsoft Corporation. All rights reserved.
451
451
  * Licensed under the MIT License.
@@ -462,7 +462,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
462
462
  unexpectedError: unexpectedError
463
463
  });
464
464
 
465
- /*! @azure/msal-common v14.16.0 2024-11-05 */
465
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
466
466
 
467
467
  /*
468
468
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -511,7 +511,7 @@ function createAuthError(code, additionalMessage) {
511
511
  : AuthErrorMessages[code]);
512
512
  }
513
513
 
514
- /*! @azure/msal-common v14.16.0 2024-11-05 */
514
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
515
515
  /*
516
516
  * Copyright (c) Microsoft Corporation. All rights reserved.
517
517
  * Licensed under the MIT License.
@@ -609,7 +609,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
609
609
  userTimeoutReached: userTimeoutReached
610
610
  });
611
611
 
612
- /*! @azure/msal-common v14.16.0 2024-11-05 */
612
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
613
613
 
614
614
  /*
615
615
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -861,7 +861,7 @@ function createClientAuthError(errorCode, additionalMessage) {
861
861
  return new ClientAuthError(errorCode, additionalMessage);
862
862
  }
863
863
 
864
- /*! @azure/msal-common v14.16.0 2024-11-05 */
864
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
865
865
 
866
866
  /*
867
867
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -900,7 +900,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
900
900
  },
901
901
  };
902
902
 
903
- /*! @azure/msal-common v14.16.0 2024-11-05 */
903
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
904
904
 
905
905
  /*
906
906
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1091,12 +1091,12 @@ class Logger {
1091
1091
  }
1092
1092
  }
1093
1093
 
1094
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1094
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1095
1095
  /* eslint-disable header/header */
1096
1096
  const name$1 = "@azure/msal-common";
1097
1097
  const version$1 = "14.16.0";
1098
1098
 
1099
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1099
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1100
1100
  /*
1101
1101
  * Copyright (c) Microsoft Corporation. All rights reserved.
1102
1102
  * Licensed under the MIT License.
@@ -1116,7 +1116,7 @@ const AzureCloudInstance = {
1116
1116
  AzureUsGovernment: "https://login.microsoftonline.us",
1117
1117
  };
1118
1118
 
1119
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1119
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1120
1120
 
1121
1121
  /*
1122
1122
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1177,7 +1177,7 @@ function checkMaxAge(authTime, maxAge) {
1177
1177
  }
1178
1178
  }
1179
1179
 
1180
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1180
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1181
1181
  /*
1182
1182
  * Copyright (c) Microsoft Corporation. All rights reserved.
1183
1183
  * Licensed under the MIT License.
@@ -1222,7 +1222,7 @@ function delay(t, value) {
1222
1222
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
1223
1223
  }
1224
1224
 
1225
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1225
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1226
1226
 
1227
1227
  /*
1228
1228
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1549,7 +1549,7 @@ function isAuthorityMetadataExpired(metadata) {
1549
1549
  return metadata.expiresAt <= nowSeconds();
1550
1550
  }
1551
1551
 
1552
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1552
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1553
1553
  /*
1554
1554
  * Copyright (c) Microsoft Corporation. All rights reserved.
1555
1555
  * Licensed under the MIT License.
@@ -1603,7 +1603,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1603
1603
  urlParseError: urlParseError
1604
1604
  });
1605
1605
 
1606
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1606
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1607
1607
 
1608
1608
  /*
1609
1609
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1741,7 +1741,7 @@ function createClientConfigurationError(errorCode) {
1741
1741
  return new ClientConfigurationError(errorCode);
1742
1742
  }
1743
1743
 
1744
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1744
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1745
1745
  /*
1746
1746
  * Copyright (c) Microsoft Corporation. All rights reserved.
1747
1747
  * Licensed under the MIT License.
@@ -1838,7 +1838,7 @@ class StringUtils {
1838
1838
  }
1839
1839
  }
1840
1840
 
1841
- /*! @azure/msal-common v14.16.0 2024-11-05 */
1841
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
1842
1842
 
1843
1843
  /*
1844
1844
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2038,7 +2038,7 @@ class ScopeSet {
2038
2038
  }
2039
2039
  }
2040
2040
 
2041
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2041
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2042
2042
 
2043
2043
  /*
2044
2044
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2078,7 +2078,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2078
2078
  };
2079
2079
  }
2080
2080
 
2081
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2081
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2082
2082
  /*
2083
2083
  * Copyright (c) Microsoft Corporation. All rights reserved.
2084
2084
  * Licensed under the MIT License.
@@ -2157,7 +2157,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
2157
2157
  return updatedAccountInfo;
2158
2158
  }
2159
2159
 
2160
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2160
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2161
2161
  /*
2162
2162
  * Copyright (c) Microsoft Corporation. All rights reserved.
2163
2163
  * Licensed under the MIT License.
@@ -2172,7 +2172,7 @@ const AuthorityType = {
2172
2172
  Ciam: 3,
2173
2173
  };
2174
2174
 
2175
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2175
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2176
2176
  /*
2177
2177
  * Copyright (c) Microsoft Corporation. All rights reserved.
2178
2178
  * Licensed under the MIT License.
@@ -2194,7 +2194,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2194
2194
  return null;
2195
2195
  }
2196
2196
 
2197
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2197
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2198
2198
  /*
2199
2199
  * Copyright (c) Microsoft Corporation. All rights reserved.
2200
2200
  * Licensed under the MIT License.
@@ -2207,7 +2207,7 @@ const ProtocolMode = {
2207
2207
  OIDC: "OIDC",
2208
2208
  };
2209
2209
 
2210
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2210
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2211
2211
 
2212
2212
  /*
2213
2213
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2450,7 +2450,7 @@ class AccountEntity {
2450
2450
  }
2451
2451
  }
2452
2452
 
2453
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2453
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2454
2454
 
2455
2455
  /*
2456
2456
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2497,7 +2497,7 @@ function getDeserializedResponse(responseString) {
2497
2497
  return null;
2498
2498
  }
2499
2499
 
2500
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2500
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2501
2501
 
2502
2502
  /*
2503
2503
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2661,7 +2661,7 @@ class UrlString {
2661
2661
  }
2662
2662
  }
2663
2663
 
2664
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2664
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2665
2665
 
2666
2666
  /*
2667
2667
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2801,7 +2801,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2801
2801
  return null;
2802
2802
  }
2803
2803
 
2804
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2804
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2805
2805
  /*
2806
2806
  * Copyright (c) Microsoft Corporation. All rights reserved.
2807
2807
  * Licensed under the MIT License.
@@ -2809,7 +2809,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2809
2809
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
2810
2810
  const cacheUnknownErrorCode = "cache_error_unknown";
2811
2811
 
2812
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2812
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2813
2813
 
2814
2814
  /*
2815
2815
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2836,7 +2836,7 @@ class CacheError extends Error {
2836
2836
  }
2837
2837
  }
2838
2838
 
2839
- /*! @azure/msal-common v14.16.0 2024-11-05 */
2839
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
2840
2840
 
2841
2841
  /*
2842
2842
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4085,7 +4085,7 @@ class DefaultStorageClass extends CacheManager {
4085
4085
  }
4086
4086
  }
4087
4087
 
4088
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4088
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4089
4089
 
4090
4090
  /*
4091
4091
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4184,7 +4184,7 @@ function isOidcProtocolMode(config) {
4184
4184
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
4185
4185
  }
4186
4186
 
4187
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4187
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4188
4188
  /*
4189
4189
  * Copyright (c) Microsoft Corporation. All rights reserved.
4190
4190
  * Licensed under the MIT License.
@@ -4194,7 +4194,7 @@ const CcsCredentialType = {
4194
4194
  UPN: "UPN",
4195
4195
  };
4196
4196
 
4197
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4197
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4198
4198
  /*
4199
4199
  * Copyright (c) Microsoft Corporation. All rights reserved.
4200
4200
  * Licensed under the MIT License.
@@ -4245,7 +4245,7 @@ const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
4245
4245
  const BROKER_CLIENT_ID = "brk_client_id";
4246
4246
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4247
4247
 
4248
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4248
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4249
4249
 
4250
4250
  /*
4251
4251
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4312,7 +4312,7 @@ class RequestValidator {
4312
4312
  }
4313
4313
  }
4314
4314
 
4315
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4315
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4316
4316
 
4317
4317
  /*
4318
4318
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4720,7 +4720,7 @@ class RequestParameterBuilder {
4720
4720
  }
4721
4721
  }
4722
4722
 
4723
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4723
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4724
4724
  /*
4725
4725
  * Copyright (c) Microsoft Corporation. All rights reserved.
4726
4726
  * Licensed under the MIT License.
@@ -4732,7 +4732,7 @@ function isOpenIdConfigResponse(response) {
4732
4732
  response.hasOwnProperty("jwks_uri"));
4733
4733
  }
4734
4734
 
4735
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4735
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4736
4736
  /*
4737
4737
  * Copyright (c) Microsoft Corporation. All rights reserved.
4738
4738
  * Licensed under the MIT License.
@@ -4742,7 +4742,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4742
4742
  response.hasOwnProperty("metadata"));
4743
4743
  }
4744
4744
 
4745
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4745
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4746
4746
  /*
4747
4747
  * Copyright (c) Microsoft Corporation. All rights reserved.
4748
4748
  * Licensed under the MIT License.
@@ -4752,7 +4752,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4752
4752
  response.hasOwnProperty("error_description"));
4753
4753
  }
4754
4754
 
4755
- /*! @azure/msal-common v14.16.0 2024-11-05 */
4755
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
4756
4756
  /*
4757
4757
  * Copyright (c) Microsoft Corporation. All rights reserved.
4758
4758
  * Licensed under the MIT License.
@@ -4997,7 +4997,7 @@ const PerformanceEvents = {
4997
4997
  GetRandomValues: "getRandomValues",
4998
4998
  };
4999
4999
 
5000
- /*! @azure/msal-common v14.16.0 2024-11-05 */
5000
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
5001
5001
  /*
5002
5002
  * Copyright (c) Microsoft Corporation. All rights reserved.
5003
5003
  * Licensed under the MIT License.
@@ -5093,7 +5093,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
5093
5093
  };
5094
5094
  };
5095
5095
 
5096
- /*! @azure/msal-common v14.16.0 2024-11-05 */
5096
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
5097
5097
 
5098
5098
  /*
5099
5099
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5202,7 +5202,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5202
5202
  },
5203
5203
  };
5204
5204
 
5205
- /*! @azure/msal-common v14.16.0 2024-11-05 */
5205
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
5206
5206
 
5207
5207
  /*
5208
5208
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6041,7 +6041,7 @@ function buildStaticAuthorityOptions(authOptions) {
6041
6041
  };
6042
6042
  }
6043
6043
 
6044
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6044
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6045
6045
 
6046
6046
  /*
6047
6047
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6072,7 +6072,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
6072
6072
  }
6073
6073
  }
6074
6074
 
6075
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6075
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6076
6076
 
6077
6077
  /*
6078
6078
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6091,7 +6091,7 @@ class ServerError extends AuthError {
6091
6091
  }
6092
6092
  }
6093
6093
 
6094
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6094
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6095
6095
 
6096
6096
  /*
6097
6097
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6189,7 +6189,7 @@ class ThrottlingUtils {
6189
6189
  }
6190
6190
  }
6191
6191
 
6192
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6192
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6193
6193
 
6194
6194
  /*
6195
6195
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6209,7 +6209,7 @@ class NetworkError extends AuthError {
6209
6209
  }
6210
6210
  }
6211
6211
 
6212
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6212
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6213
6213
 
6214
6214
  /*
6215
6215
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6359,7 +6359,7 @@ class BaseClient {
6359
6359
  }
6360
6360
  }
6361
6361
 
6362
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6362
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6363
6363
  /*
6364
6364
  * Copyright (c) Microsoft Corporation. All rights reserved.
6365
6365
  * Licensed under the MIT License.
@@ -6385,7 +6385,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6385
6385
  refreshTokenExpired: refreshTokenExpired
6386
6386
  });
6387
6387
 
6388
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6388
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6389
6389
 
6390
6390
  /*
6391
6391
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6473,7 +6473,7 @@ function createInteractionRequiredAuthError(errorCode) {
6473
6473
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6474
6474
  }
6475
6475
 
6476
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6476
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6477
6477
 
6478
6478
  /*
6479
6479
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6545,7 +6545,7 @@ class ProtocolUtils {
6545
6545
  }
6546
6546
  }
6547
6547
 
6548
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6548
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6549
6549
 
6550
6550
  /*
6551
6551
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6629,7 +6629,7 @@ class PopTokenGenerator {
6629
6629
  }
6630
6630
  }
6631
6631
 
6632
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6632
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6633
6633
  /*
6634
6634
  * Copyright (c) Microsoft Corporation. All rights reserved.
6635
6635
  * Licensed under the MIT License.
@@ -6656,7 +6656,7 @@ class PopTokenGenerator {
6656
6656
  }
6657
6657
  }
6658
6658
 
6659
- /*! @azure/msal-common v14.16.0 2024-11-05 */
6659
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
6660
6660
 
6661
6661
  /*
6662
6662
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7033,7 +7033,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
7033
7033
  return baseAccount;
7034
7034
  }
7035
7035
 
7036
- /*! @azure/msal-common v14.16.0 2024-11-05 */
7036
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
7037
7037
  /*
7038
7038
  * Copyright (c) Microsoft Corporation. All rights reserved.
7039
7039
  * Licensed under the MIT License.
@@ -7051,7 +7051,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
7051
7051
  }
7052
7052
  }
7053
7053
 
7054
- /*! @azure/msal-common v14.16.0 2024-11-05 */
7054
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
7055
7055
 
7056
7056
  /*
7057
7057
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7493,7 +7493,7 @@ class AuthorizationCodeClient extends BaseClient {
7493
7493
  }
7494
7494
  }
7495
7495
 
7496
- /*! @azure/msal-common v14.16.0 2024-11-05 */
7496
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
7497
7497
 
7498
7498
  /*
7499
7499
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7713,7 +7713,7 @@ class RefreshTokenClient extends BaseClient {
7713
7713
  }
7714
7714
  }
7715
7715
 
7716
- /*! @azure/msal-common v14.16.0 2024-11-05 */
7716
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
7717
7717
 
7718
7718
  /*
7719
7719
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7849,7 +7849,7 @@ class SilentFlowClient extends BaseClient {
7849
7849
  }
7850
7850
  }
7851
7851
 
7852
- /*! @azure/msal-common v14.16.0 2024-11-05 */
7852
+ /*! @azure/msal-common v14.16.0 2024-11-19 */
7853
7853
 
7854
7854
  /*
7855
7855
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9874,7 +9874,7 @@ class TokenCache {
9874
9874
  let cacheContext;
9875
9875
  try {
9876
9876
  if (this.persistence) {
9877
- cacheContext = new TokenCacheContext(this, true);
9877
+ cacheContext = new TokenCacheContext(this, false);
9878
9878
  await this.persistence.beforeCacheAccess(cacheContext);
9879
9879
  }
9880
9880
  return this.storage.getAllAccounts();
@@ -10208,7 +10208,7 @@ class ClientAssertion {
10208
10208
 
10209
10209
  /* eslint-disable header/header */
10210
10210
  const name = "@azure/msal-node";
10211
- const version = "2.16.0";
10211
+ const version = "2.16.2";
10212
10212
 
10213
10213
  /*
10214
10214
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12425,11 +12425,15 @@ class DistributedCachePlugin {
12425
12425
  if (cacheContext.cacheHasChanged) {
12426
12426
  const kvStore = cacheContext.tokenCache.getKVStore();
12427
12427
  const accountEntities = Object.values(kvStore).filter((value) => AccountEntity.isAccountEntity(value));
12428
+ let partitionKey;
12428
12429
  if (accountEntities.length > 0) {
12429
12430
  const accountEntity = accountEntities[0];
12430
- const partitionKey = await this.partitionManager.extractKey(accountEntity);
12431
- await this.client.set(partitionKey, cacheContext.tokenCache.serialize());
12431
+ partitionKey = await this.partitionManager.extractKey(accountEntity);
12432
+ }
12433
+ else {
12434
+ partitionKey = await this.partitionManager.getKey();
12432
12435
  }
12436
+ await this.client.set(partitionKey, cacheContext.tokenCache.serialize());
12433
12437
  }
12434
12438
  }
12435
12439
  }