@azure/msal-node 5.1.3 → 5.1.4

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 (55) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.mjs +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  5. package/dist/cache/serializer/Deserializer.mjs +1 -1
  6. package/dist/cache/serializer/Serializer.mjs +1 -1
  7. package/dist/client/BaseClient.mjs +1 -1
  8. package/dist/client/ClientApplication.mjs +1 -1
  9. package/dist/client/ClientAssertion.mjs +1 -1
  10. package/dist/client/ClientCredentialClient.mjs +1 -1
  11. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  12. package/dist/client/DeviceCodeClient.mjs +1 -1
  13. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  14. package/dist/client/ManagedIdentityClient.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/MachineLearning.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/ClientAuthErrorCodes.mjs +1 -1
  33. package/dist/error/ManagedIdentityError.mjs +1 -1
  34. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  35. package/dist/error/NodeAuthError.mjs +1 -1
  36. package/dist/index.mjs +1 -1
  37. package/dist/internals.mjs +1 -1
  38. package/dist/network/HttpClient.mjs +1 -1
  39. package/dist/network/HttpClientWithRetries.mjs +1 -1
  40. package/dist/network/LoopbackClient.mjs +1 -1
  41. package/dist/packageMetadata.d.ts +1 -1
  42. package/dist/packageMetadata.mjs +2 -2
  43. package/dist/protocol/Authorize.mjs +1 -1
  44. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  45. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  46. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  47. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  48. package/dist/utils/Constants.mjs +1 -1
  49. package/dist/utils/EncodingUtils.mjs +1 -1
  50. package/dist/utils/TimeUtils.mjs +1 -1
  51. package/lib/msal-node.cjs +101 -72
  52. package/lib/msal-node.cjs.map +1 -1
  53. package/lib/types/packageMetadata.d.ts +1 -1
  54. package/package.json +2 -2
  55. package/src/packageMetadata.ts +1 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.1.3 2026-04-16 */
1
+ /*! @azure/msal-node v5.1.4 2026-04-21 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -150,7 +150,7 @@ class Serializer {
150
150
  }
151
151
  }
152
152
 
153
- /*! @azure/msal-common v16.5.0 2026-04-16 */
153
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
154
154
  /*
155
155
  * Copyright (c) Microsoft Corporation. All rights reserved.
156
156
  * Licensed under the MIT License.
@@ -398,7 +398,7 @@ const EncodingTypes = {
398
398
  UTF8: "utf-8",
399
399
  };
400
400
 
401
- /*! @azure/msal-common v16.5.0 2026-04-16 */
401
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
402
402
  /*
403
403
  * Copyright (c) Microsoft Corporation. All rights reserved.
404
404
  * Licensed under the MIT License.
@@ -451,7 +451,7 @@ const INSTANCE_AWARE = "instance_aware";
451
451
  const RESOURCE = "resource";
452
452
  const CLI_DATA = "clidata";
453
453
 
454
- /*! @azure/msal-common v16.5.0 2026-04-16 */
454
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
455
455
  /*
456
456
  * Copyright (c) Microsoft Corporation. All rights reserved.
457
457
  * Licensed under the MIT License.
@@ -482,7 +482,7 @@ function createAuthError(code, additionalMessage) {
482
482
  return new AuthError(code, additionalMessage || getDefaultErrorMessage(code));
483
483
  }
484
484
 
485
- /*! @azure/msal-common v16.5.0 2026-04-16 */
485
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
486
486
 
487
487
  /*
488
488
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -502,7 +502,7 @@ function createClientConfigurationError(errorCode) {
502
502
  return new ClientConfigurationError(errorCode);
503
503
  }
504
504
 
505
- /*! @azure/msal-common v16.5.0 2026-04-16 */
505
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
506
506
  /*
507
507
  * Copyright (c) Microsoft Corporation. All rights reserved.
508
508
  * Licensed under the MIT License.
@@ -582,7 +582,7 @@ class StringUtils {
582
582
  }
583
583
  }
584
584
 
585
- /*! @azure/msal-common v16.5.0 2026-04-16 */
585
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
586
586
 
587
587
  /*
588
588
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -605,7 +605,7 @@ function createClientAuthError(errorCode, additionalMessage) {
605
605
  return new ClientAuthError(errorCode, additionalMessage);
606
606
  }
607
607
 
608
- /*! @azure/msal-common v16.5.0 2026-04-16 */
608
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
609
609
  /*
610
610
  * Copyright (c) Microsoft Corporation. All rights reserved.
611
611
  * Licensed under the MIT License.
@@ -659,7 +659,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
659
659
  urlParseError: urlParseError
660
660
  });
661
661
 
662
- /*! @azure/msal-common v16.5.0 2026-04-16 */
662
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
663
663
  /*
664
664
  * Copyright (c) Microsoft Corporation. All rights reserved.
665
665
  * Licensed under the MIT License.
@@ -747,7 +747,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
747
747
  userCanceled: userCanceled
748
748
  });
749
749
 
750
- /*! @azure/msal-common v16.5.0 2026-04-16 */
750
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
751
751
 
752
752
  /*
753
753
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -942,7 +942,7 @@ class ScopeSet {
942
942
  }
943
943
  }
944
944
 
945
- /*! @azure/msal-common v16.5.0 2026-04-16 */
945
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
946
946
 
947
947
  /*
948
948
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1349,7 +1349,7 @@ function addResource(parameters, resource) {
1349
1349
  }
1350
1350
  }
1351
1351
 
1352
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1352
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1353
1353
  /**
1354
1354
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
1355
1355
  * @param hashString
@@ -1402,7 +1402,7 @@ function mapToQueryString(parameters) {
1402
1402
  return queryParameterArray.join("&");
1403
1403
  }
1404
1404
 
1405
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1405
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1406
1406
 
1407
1407
  /*
1408
1408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1441,7 +1441,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
1441
1441
  },
1442
1442
  };
1443
1443
 
1444
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1444
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1445
1445
  /*
1446
1446
  * Copyright (c) Microsoft Corporation. All rights reserved.
1447
1447
  * Licensed under the MIT License.
@@ -1702,12 +1702,12 @@ class Logger {
1702
1702
  }
1703
1703
  }
1704
1704
 
1705
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1705
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1706
1706
  /* eslint-disable header/header */
1707
1707
  const name$1 = "@azure/msal-common";
1708
- const version$1 = "16.5.0";
1708
+ const version$1 = "16.5.1";
1709
1709
 
1710
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1710
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1711
1711
  /*
1712
1712
  * Copyright (c) Microsoft Corporation. All rights reserved.
1713
1713
  * Licensed under the MIT License.
@@ -1727,7 +1727,7 @@ const AzureCloudInstance = {
1727
1727
  AzureUsGovernment: "https://login.microsoftonline.us",
1728
1728
  };
1729
1729
 
1730
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1730
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1731
1731
  /*
1732
1732
  * Copyright (c) Microsoft Corporation. All rights reserved.
1733
1733
  * Licensed under the MIT License.
@@ -1768,6 +1768,7 @@ function buildTenantProfile(homeAccountId, localAccountId, tenantId, idTokenClai
1768
1768
  username: preferred_username || upn || "",
1769
1769
  loginHint: login_hint,
1770
1770
  isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
1771
+ upn: upn,
1771
1772
  };
1772
1773
  }
1773
1774
  else {
@@ -1795,7 +1796,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1795
1796
  }
1796
1797
  // ID token claims override passed in account info and tenant profile
1797
1798
  if (idTokenClaims) {
1798
- // Ignore isHomeTenant, loginHint, and sid which are part of tenant profile but not base account info
1799
+ // Ignore isHomeTenant which is a utility property of tenant profile but not required in base account info
1799
1800
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1800
1801
  const { isHomeTenant, ...claimsSourcedTenantProfile } = buildTenantProfile(baseAccountInfo.homeAccountId, baseAccountInfo.localAccountId, baseAccountInfo.tenantId, idTokenClaims);
1801
1802
  updatedAccountInfo = {
@@ -1809,7 +1810,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1809
1810
  return updatedAccountInfo;
1810
1811
  }
1811
1812
 
1812
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1813
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1813
1814
 
1814
1815
  /*
1815
1816
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1889,7 +1890,7 @@ function checkMaxAge(authTime, maxAge) {
1889
1890
  }
1890
1891
  }
1891
1892
 
1892
- /*! @azure/msal-common v16.5.0 2026-04-16 */
1893
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
1893
1894
 
1894
1895
  /*
1895
1896
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2046,7 +2047,7 @@ class UrlString {
2046
2047
  }
2047
2048
  }
2048
2049
 
2049
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2050
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2050
2051
 
2051
2052
  /*
2052
2053
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2203,7 +2204,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2203
2204
  return null;
2204
2205
  }
2205
2206
 
2206
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2207
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2207
2208
  /*
2208
2209
  * Copyright (c) Microsoft Corporation. All rights reserved.
2209
2210
  * Licensed under the MIT License.
@@ -2211,7 +2212,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2211
2212
  const cacheQuotaExceeded = "cache_quota_exceeded";
2212
2213
  const cacheErrorUnknown = "cache_error_unknown";
2213
2214
 
2214
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2215
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2215
2216
 
2216
2217
  /*
2217
2218
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2249,7 +2250,7 @@ function createCacheError(e) {
2249
2250
  }
2250
2251
  }
2251
2252
 
2252
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2253
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2253
2254
 
2254
2255
  /*
2255
2256
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2287,7 +2288,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2287
2288
  };
2288
2289
  }
2289
2290
 
2290
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2291
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2291
2292
  /*
2292
2293
  * Copyright (c) Microsoft Corporation. All rights reserved.
2293
2294
  * Licensed under the MIT License.
@@ -2302,7 +2303,7 @@ const AuthorityType = {
2302
2303
  Ciam: 3,
2303
2304
  };
2304
2305
 
2305
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2306
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2306
2307
  /*
2307
2308
  * Copyright (c) Microsoft Corporation. All rights reserved.
2308
2309
  * Licensed under the MIT License.
@@ -2324,7 +2325,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2324
2325
  return null;
2325
2326
  }
2326
2327
 
2327
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2328
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2328
2329
  /*
2329
2330
  * Copyright (c) Microsoft Corporation. All rights reserved.
2330
2331
  * Licensed under the MIT License.
@@ -2348,7 +2349,7 @@ const ProtocolMode = {
2348
2349
  EAR: "EAR",
2349
2350
  };
2350
2351
 
2351
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2352
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2352
2353
  /**
2353
2354
  * Returns the AccountInfo interface for this account.
2354
2355
  */
@@ -2491,7 +2492,7 @@ function isAccountEntity(entity) {
2491
2492
  entity.hasOwnProperty("authorityType"));
2492
2493
  }
2493
2494
 
2494
- /*! @azure/msal-common v16.5.0 2026-04-16 */
2495
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
2495
2496
 
2496
2497
  /*
2497
2498
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2628,6 +2629,19 @@ class CacheManager {
2628
2629
  !(tenantProfile.isHomeTenant === tenantProfileFilter.isHomeTenant)) {
2629
2630
  return false;
2630
2631
  }
2632
+ if (!!tenantProfileFilter.username &&
2633
+ !(this.matchUsername(tenantProfile.username, tenantProfileFilter.username) ||
2634
+ !this.matchUsername(tenantProfile.upn, tenantProfileFilter.username))) {
2635
+ return false;
2636
+ }
2637
+ if (!!tenantProfileFilter.loginHint &&
2638
+ !this.matchLoginHintWithTenantProfile(tenantProfile, tenantProfileFilter.loginHint)) {
2639
+ return false;
2640
+ }
2641
+ if (!!tenantProfileFilter.upn &&
2642
+ !(tenantProfile.upn === tenantProfileFilter.upn)) {
2643
+ return false;
2644
+ }
2631
2645
  return true;
2632
2646
  }
2633
2647
  idTokenClaimsMatchTenantProfileFilter(idTokenClaims, tenantProfileFilter) {
@@ -2642,7 +2656,8 @@ class CacheManager {
2642
2656
  return false;
2643
2657
  }
2644
2658
  if (!!tenantProfileFilter.username &&
2645
- !this.matchUsername(idTokenClaims.preferred_username, tenantProfileFilter.username)) {
2659
+ !this.matchUsername(idTokenClaims.preferred_username, tenantProfileFilter.username) &&
2660
+ !this.matchUsername(idTokenClaims.upn, tenantProfileFilter.username)) {
2646
2661
  return false;
2647
2662
  }
2648
2663
  if (!!tenantProfileFilter.name &&
@@ -2743,10 +2758,6 @@ class CacheManager {
2743
2758
  !this.matchHomeAccountId(entity, accountFilter.homeAccountId)) {
2744
2759
  return;
2745
2760
  }
2746
- if (!!accountFilter.username &&
2747
- !this.matchUsername(entity.username, accountFilter.username)) {
2748
- return;
2749
- }
2750
2761
  if (!!accountFilter.environment &&
2751
2762
  !this.matchEnvironment(entity, accountFilter.environment, correlationId)) {
2752
2763
  return;
@@ -2767,6 +2778,9 @@ class CacheManager {
2767
2778
  const tenantProfileFilter = {
2768
2779
  localAccountId: accountFilter?.localAccountId,
2769
2780
  name: accountFilter?.name,
2781
+ username: accountFilter?.username,
2782
+ loginHint: accountFilter?.loginHint,
2783
+ upn: accountFilter?.upn,
2770
2784
  };
2771
2785
  const matchingTenantProfiles = entity.tenantProfiles?.filter((tenantProfile) => {
2772
2786
  return this.tenantProfileMatchesFilter(tenantProfile, tenantProfileFilter);
@@ -3017,11 +3031,11 @@ class CacheManager {
3017
3031
  const numHomeIdTokens = homeIdTokenMap.size;
3018
3032
  if (numHomeIdTokens < 1) {
3019
3033
  this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result", correlationId);
3020
- return idTokenMap.values().next().value;
3034
+ return idTokenMap.values().next().value ?? null;
3021
3035
  }
3022
3036
  else if (numHomeIdTokens === 1) {
3023
3037
  this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile", correlationId);
3024
- return homeIdTokenMap.values().next().value;
3038
+ return homeIdTokenMap.values().next().value ?? null;
3025
3039
  }
3026
3040
  else {
3027
3041
  // Multiple ID tokens for home tenant profile, remove all and return null
@@ -3037,7 +3051,7 @@ class CacheManager {
3037
3051
  return null;
3038
3052
  }
3039
3053
  this.commonLogger.info("CacheManager:getIdToken - Returning ID token", correlationId);
3040
- return idTokenMap.values().next().value;
3054
+ return idTokenMap.values().next().value ?? null;
3041
3055
  }
3042
3056
  /**
3043
3057
  * Gets all idTokens matching the given filter
@@ -3349,6 +3363,17 @@ class CacheManager {
3349
3363
  typeof cachedUsername === "string" &&
3350
3364
  filterUsername?.toLowerCase() === cachedUsername.toLowerCase());
3351
3365
  }
3366
+ /**
3367
+ * helper to match loginhints
3368
+ * @param entity
3369
+ * @param loginHint
3370
+ * @returns
3371
+ */
3372
+ matchLoginHintWithTenantProfile(tenantProfile, loginHintFilter) {
3373
+ return (tenantProfile.loginHint === loginHintFilter ||
3374
+ tenantProfile.username === loginHintFilter ||
3375
+ tenantProfile.upn === loginHintFilter);
3376
+ }
3352
3377
  /**
3353
3378
  * helper to match assertion
3354
3379
  * @param value
@@ -3441,6 +3466,10 @@ class CacheManager {
3441
3466
  if (tokenClaims.upn === loginHint) {
3442
3467
  return true;
3443
3468
  }
3469
+ // check login hint against list of emails in token claims
3470
+ if (tokenClaims.emails && tokenClaims.emails.includes(loginHint)) {
3471
+ return true;
3472
+ }
3444
3473
  return false;
3445
3474
  }
3446
3475
  /**
@@ -3592,7 +3621,7 @@ class DefaultStorageClass extends CacheManager {
3592
3621
  }
3593
3622
  }
3594
3623
 
3595
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3624
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3596
3625
  /*
3597
3626
  * Copyright (c) Microsoft Corporation. All rights reserved.
3598
3627
  * Licensed under the MIT License.
@@ -3606,7 +3635,7 @@ class DefaultStorageClass extends CacheManager {
3606
3635
  const PerformanceEventStatus = {
3607
3636
  InProgress: 1};
3608
3637
 
3609
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3638
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3610
3639
 
3611
3640
  /*
3612
3641
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3661,7 +3690,7 @@ class StubPerformanceClient {
3661
3690
  }
3662
3691
  }
3663
3692
 
3664
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3693
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3665
3694
 
3666
3695
  /*
3667
3696
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3756,7 +3785,7 @@ function isOidcProtocolMode(config) {
3756
3785
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3757
3786
  }
3758
3787
 
3759
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3788
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3760
3789
  /*
3761
3790
  * Copyright (c) Microsoft Corporation. All rights reserved.
3762
3791
  * Licensed under the MIT License.
@@ -3783,7 +3812,7 @@ function isOidcProtocolMode(config) {
3783
3812
  }
3784
3813
  }
3785
3814
 
3786
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3815
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3787
3816
  /*
3788
3817
  * Copyright (c) Microsoft Corporation. All rights reserved.
3789
3818
  * Licensed under the MIT License.
@@ -3838,7 +3867,7 @@ function delay(t, value) {
3838
3867
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
3839
3868
  }
3840
3869
 
3841
- /*! @azure/msal-common v16.5.0 2026-04-16 */
3870
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
3842
3871
 
3843
3872
  /*
3844
3873
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4097,7 +4126,7 @@ function isAuthorityMetadataExpired(metadata) {
4097
4126
  return metadata.expiresAt <= nowSeconds();
4098
4127
  }
4099
4128
 
4100
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4129
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4101
4130
  /*
4102
4131
  * Copyright (c) Microsoft Corporation. All rights reserved.
4103
4132
  * Licensed under the MIT License.
@@ -4159,7 +4188,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
4159
4188
  */
4160
4189
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
4161
4190
 
4162
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4191
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4163
4192
  /*
4164
4193
  * Copyright (c) Microsoft Corporation. All rights reserved.
4165
4194
  * Licensed under the MIT License.
@@ -4252,7 +4281,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4252
4281
  };
4253
4282
  };
4254
4283
 
4255
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4284
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4256
4285
 
4257
4286
  /*
4258
4287
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4332,7 +4361,7 @@ class PopTokenGenerator {
4332
4361
  }
4333
4362
  }
4334
4363
 
4335
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4364
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4336
4365
  /*
4337
4366
  * Copyright (c) Microsoft Corporation. All rights reserved.
4338
4367
  * Licensed under the MIT License.
@@ -4396,7 +4425,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
4396
4425
  uxNotAllowed: uxNotAllowed
4397
4426
  });
4398
4427
 
4399
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4428
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4400
4429
 
4401
4430
  /*
4402
4431
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4464,7 +4493,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
4464
4493
  return new InteractionRequiredAuthError(errorCode, errorMessage);
4465
4494
  }
4466
4495
 
4467
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4496
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4468
4497
 
4469
4498
  /*
4470
4499
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4483,7 +4512,7 @@ class ServerError extends AuthError {
4483
4512
  }
4484
4513
  }
4485
4514
 
4486
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4515
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4487
4516
  /**
4488
4517
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
4489
4518
  * @param base64Decode
@@ -4515,7 +4544,7 @@ function parseRequestState(base64Decode, state) {
4515
4544
  }
4516
4545
  }
4517
4546
 
4518
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4547
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4519
4548
 
4520
4549
  /*
4521
4550
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4863,7 +4892,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
4863
4892
  return baseAccount;
4864
4893
  }
4865
4894
 
4866
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4895
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4867
4896
  /*
4868
4897
  * Copyright (c) Microsoft Corporation. All rights reserved.
4869
4898
  * Licensed under the MIT License.
@@ -4873,7 +4902,7 @@ const CcsCredentialType = {
4873
4902
  UPN: "UPN",
4874
4903
  };
4875
4904
 
4876
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4905
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4877
4906
  /*
4878
4907
  * Copyright (c) Microsoft Corporation. All rights reserved.
4879
4908
  * Licensed under the MIT License.
@@ -4891,7 +4920,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
4891
4920
  }
4892
4921
  }
4893
4922
 
4894
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4923
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4895
4924
  /*
4896
4925
  * Copyright (c) Microsoft Corporation. All rights reserved.
4897
4926
  * Licensed under the MIT License.
@@ -4912,7 +4941,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
4912
4941
  };
4913
4942
  }
4914
4943
 
4915
- /*! @azure/msal-common v16.5.0 2026-04-16 */
4944
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
4916
4945
 
4917
4946
  /*
4918
4947
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4998,7 +5027,7 @@ class ThrottlingUtils {
4998
5027
  }
4999
5028
  }
5000
5029
 
5001
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5030
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5002
5031
 
5003
5032
  /*
5004
5033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5029,7 +5058,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
5029
5058
  return new NetworkError(error, httpStatus, responseHeaders);
5030
5059
  }
5031
5060
 
5032
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5061
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5033
5062
 
5034
5063
  /*
5035
5064
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5143,7 +5172,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
5143
5172
  return response;
5144
5173
  }
5145
5174
 
5146
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5175
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5147
5176
  /*
5148
5177
  * Copyright (c) Microsoft Corporation. All rights reserved.
5149
5178
  * Licensed under the MIT License.
@@ -5155,7 +5184,7 @@ function isOpenIdConfigResponse(response) {
5155
5184
  response.hasOwnProperty("jwks_uri"));
5156
5185
  }
5157
5186
 
5158
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5187
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5159
5188
  /*
5160
5189
  * Copyright (c) Microsoft Corporation. All rights reserved.
5161
5190
  * Licensed under the MIT License.
@@ -5165,7 +5194,7 @@ function isCloudInstanceDiscoveryResponse(response) {
5165
5194
  response.hasOwnProperty("metadata"));
5166
5195
  }
5167
5196
 
5168
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5197
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5169
5198
  /*
5170
5199
  * Copyright (c) Microsoft Corporation. All rights reserved.
5171
5200
  * Licensed under the MIT License.
@@ -5175,7 +5204,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
5175
5204
  response.hasOwnProperty("error_description"));
5176
5205
  }
5177
5206
 
5178
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5207
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5179
5208
 
5180
5209
  /*
5181
5210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5280,7 +5309,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5280
5309
  },
5281
5310
  };
5282
5311
 
5283
- /*! @azure/msal-common v16.5.0 2026-04-16 */
5312
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
5284
5313
 
5285
5314
  /*
5286
5315
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6103,7 +6132,7 @@ function buildStaticAuthorityOptions(authOptions) {
6103
6132
  };
6104
6133
  }
6105
6134
 
6106
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6135
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6107
6136
 
6108
6137
  /*
6109
6138
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6137,7 +6166,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
6137
6166
  }
6138
6167
  }
6139
6168
 
6140
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6169
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6141
6170
 
6142
6171
  /*
6143
6172
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6394,7 +6423,7 @@ class AuthorizationCodeClient {
6394
6423
  }
6395
6424
  }
6396
6425
 
6397
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6426
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6398
6427
 
6399
6428
  /*
6400
6429
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6615,7 +6644,7 @@ class RefreshTokenClient {
6615
6644
  }
6616
6645
  }
6617
6646
 
6618
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6647
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6619
6648
 
6620
6649
  /*
6621
6650
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6731,7 +6760,7 @@ class SilentFlowClient {
6731
6760
  }
6732
6761
  }
6733
6762
 
6734
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6763
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6735
6764
 
6736
6765
  /*
6737
6766
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6880,7 +6909,7 @@ function extractLoginHint(account) {
6880
6909
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6881
6910
  }
6882
6911
 
6883
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6912
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6884
6913
 
6885
6914
  /*
6886
6915
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6913,7 +6942,7 @@ function containsResourceParam(params) {
6913
6942
  return Object.prototype.hasOwnProperty.call(params, "resource");
6914
6943
  }
6915
6944
 
6916
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6945
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6917
6946
  /*
6918
6947
  * Copyright (c) Microsoft Corporation. All rights reserved.
6919
6948
  * Licensed under the MIT License.
@@ -6930,7 +6959,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
6930
6959
  unexpectedError: unexpectedError
6931
6960
  });
6932
6961
 
6933
- /*! @azure/msal-common v16.5.0 2026-04-16 */
6962
+ /*! @azure/msal-common v16.5.1 2026-04-21 */
6934
6963
 
6935
6964
  /*
6936
6965
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9133,7 +9162,7 @@ class ClientAssertion {
9133
9162
 
9134
9163
  /* eslint-disable header/header */
9135
9164
  const name = "@azure/msal-node";
9136
- const version = "5.1.3";
9165
+ const version = "5.1.4";
9137
9166
 
9138
9167
  /*
9139
9168
  * Copyright (c) Microsoft Corporation. All rights reserved.