@azure/msal-browser 2.19.2 → 2.19.3

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 (57) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_tslib.js +1 -1
  3. package/dist/app/ClientApplication.js +1 -1
  4. package/dist/app/IPublicClientApplication.js +1 -1
  5. package/dist/app/PublicClientApplication.js +1 -1
  6. package/dist/cache/AsyncMemoryStorage.js +1 -1
  7. package/dist/cache/BrowserCacheManager.d.ts +1 -5
  8. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  9. package/dist/cache/BrowserCacheManager.js +1 -20
  10. package/dist/cache/BrowserCacheManager.js.map +1 -1
  11. package/dist/cache/BrowserStorage.js +1 -1
  12. package/dist/cache/DatabaseStorage.js +1 -1
  13. package/dist/cache/MemoryStorage.js +1 -1
  14. package/dist/cache/TokenCache.js +1 -1
  15. package/dist/config/Configuration.js +1 -1
  16. package/dist/crypto/BrowserCrypto.js +1 -1
  17. package/dist/crypto/CryptoOps.js +1 -1
  18. package/dist/crypto/GuidGenerator.js +1 -1
  19. package/dist/crypto/PkceGenerator.js +1 -1
  20. package/dist/crypto/SignedHttpRequest.js +1 -1
  21. package/dist/encode/Base64Decode.js +1 -1
  22. package/dist/encode/Base64Encode.js +1 -1
  23. package/dist/error/BrowserAuthError.js +1 -1
  24. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  25. package/dist/event/EventHandler.js +1 -1
  26. package/dist/event/EventMessage.js +1 -1
  27. package/dist/event/EventType.js +1 -1
  28. package/dist/index.cjs.js +78 -114
  29. package/dist/index.cjs.js.map +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  32. package/dist/interaction_client/PopupClient.js +1 -1
  33. package/dist/interaction_client/RedirectClient.js +1 -1
  34. package/dist/interaction_client/SilentCacheClient.js +1 -1
  35. package/dist/interaction_client/SilentIframeClient.js +1 -1
  36. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  37. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  38. package/dist/interaction_handler/InteractionHandler.js +1 -1
  39. package/dist/interaction_handler/PopupHandler.js +1 -1
  40. package/dist/interaction_handler/RedirectHandler.js +1 -1
  41. package/dist/interaction_handler/SilentHandler.js +1 -1
  42. package/dist/navigation/NavigationClient.js +1 -1
  43. package/dist/network/FetchClient.js +1 -1
  44. package/dist/network/XhrClient.js +1 -1
  45. package/dist/packageMetadata.d.ts +1 -1
  46. package/dist/packageMetadata.js +2 -2
  47. package/dist/packageMetadata.js.map +1 -1
  48. package/dist/utils/BrowserConstants.js +1 -1
  49. package/dist/utils/BrowserProtocolUtils.js +1 -1
  50. package/dist/utils/BrowserStringUtils.js +1 -1
  51. package/dist/utils/BrowserUtils.js +1 -1
  52. package/dist/utils/MathUtils.js +1 -1
  53. package/dist/utils/PopupUtils.js +1 -1
  54. package/lib/msal-browser.js +78 -114
  55. package/lib/msal-browser.js.map +1 -1
  56. package/lib/msal-browser.min.js +23 -23
  57. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.19.2 2022-08-03 */
1
+ /*! @azure/msal-browser v2.19.3 2023-08-24 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -107,7 +107,7 @@
107
107
  return ar;
108
108
  }
109
109
 
110
- /*! @azure/msal-common v5.1.2 2022-08-03 */
110
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
111
111
  /*! *****************************************************************************
112
112
  Copyright (c) Microsoft Corporation.
113
113
 
@@ -194,7 +194,7 @@
194
194
  return r;
195
195
  }
196
196
 
197
- /*! @azure/msal-common v5.1.2 2022-08-03 */
197
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
198
198
 
199
199
  /*
200
200
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -555,7 +555,7 @@
555
555
  CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4";
556
556
  })(CacheOutcome || (CacheOutcome = {}));
557
557
 
558
- /*! @azure/msal-common v5.1.2 2022-08-03 */
558
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
559
559
 
560
560
  /*
561
561
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -599,7 +599,7 @@
599
599
  return AuthError;
600
600
  }(Error));
601
601
 
602
- /*! @azure/msal-common v5.1.2 2022-08-03 */
602
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
603
603
 
604
604
  /*
605
605
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -665,7 +665,7 @@
665
665
  }
666
666
  };
667
667
 
668
- /*! @azure/msal-common v5.1.2 2022-08-03 */
668
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
669
669
 
670
670
  /*
671
671
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1127,7 +1127,7 @@
1127
1127
  return ClientAuthError;
1128
1128
  }(AuthError));
1129
1129
 
1130
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1130
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1131
1131
 
1132
1132
  /*
1133
1133
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1252,7 +1252,7 @@
1252
1252
  return StringUtils;
1253
1253
  }());
1254
1254
 
1255
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1255
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1256
1256
 
1257
1257
  /*
1258
1258
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1432,12 +1432,12 @@
1432
1432
  return Logger;
1433
1433
  }());
1434
1434
 
1435
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1435
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1436
1436
  /* eslint-disable header/header */
1437
1437
  var name$1 = "@azure/msal-common";
1438
- var version$1 = "5.1.2";
1438
+ var version$1 = "5.1.3";
1439
1439
 
1440
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1440
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1441
1441
 
1442
1442
  /*
1443
1443
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1581,7 +1581,7 @@
1581
1581
  return CredentialEntity;
1582
1582
  }());
1583
1583
 
1584
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1584
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1585
1585
 
1586
1586
  /*
1587
1587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1826,7 +1826,7 @@
1826
1826
  return ClientConfigurationError;
1827
1827
  }(ClientAuthError));
1828
1828
 
1829
- /*! @azure/msal-common v5.1.2 2022-08-03 */
1829
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
1830
1830
 
1831
1831
  /*
1832
1832
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2010,7 +2010,7 @@
2010
2010
  return ScopeSet;
2011
2011
  }());
2012
2012
 
2013
- /*! @azure/msal-common v5.1.2 2022-08-03 */
2013
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
2014
2014
 
2015
2015
  /*
2016
2016
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2048,7 +2048,7 @@
2048
2048
  };
2049
2049
  }
2050
2050
 
2051
- /*! @azure/msal-common v5.1.2 2022-08-03 */
2051
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
2052
2052
  /*
2053
2053
  * Copyright (c) Microsoft Corporation. All rights reserved.
2054
2054
  * Licensed under the MIT License.
@@ -2062,7 +2062,7 @@
2062
2062
  AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
2063
2063
  })(AuthorityType || (AuthorityType = {}));
2064
2064
 
2065
- /*! @azure/msal-common v5.1.2 2022-08-03 */
2065
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
2066
2066
 
2067
2067
  /*
2068
2068
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2296,7 +2296,7 @@
2296
2296
  return AccountEntity;
2297
2297
  }());
2298
2298
 
2299
- /*! @azure/msal-common v5.1.2 2022-08-03 */
2299
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
2300
2300
 
2301
2301
  /*
2302
2302
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2334,7 +2334,7 @@
2334
2334
  return AuthToken;
2335
2335
  }());
2336
2336
 
2337
- /*! @azure/msal-common v5.1.2 2022-08-03 */
2337
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
2338
2338
 
2339
2339
  /*
2340
2340
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2578,21 +2578,16 @@
2578
2578
  break;
2579
2579
  }
2580
2580
  }
2581
- /*
2582
- * At this point, the entity matches the request, update cache key if key schema has changed
2583
- * Migration code for forwards compatibility with new versions of the library in case of rollback.
2584
- */
2585
- var updatedCacheKey = _this.updateCredentialCacheKey(cacheKey, entity);
2586
2581
  switch (credType) {
2587
2582
  case CredentialType.ID_TOKEN:
2588
- matchingCredentials.idTokens[updatedCacheKey] = entity;
2583
+ matchingCredentials.idTokens[cacheKey] = entity;
2589
2584
  break;
2590
2585
  case CredentialType.ACCESS_TOKEN:
2591
2586
  case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:
2592
- matchingCredentials.accessTokens[updatedCacheKey] = entity;
2587
+ matchingCredentials.accessTokens[cacheKey] = entity;
2593
2588
  break;
2594
2589
  case CredentialType.REFRESH_TOKEN:
2595
- matchingCredentials.refreshTokens[updatedCacheKey] = entity;
2590
+ matchingCredentials.refreshTokens[cacheKey] = entity;
2596
2591
  break;
2597
2592
  }
2598
2593
  });
@@ -2823,6 +2818,7 @@
2823
2818
  * @param inputRealm
2824
2819
  */
2825
2820
  CacheManager.prototype.readIdTokenFromCache = function (clientId, account) {
2821
+ var _this = this;
2826
2822
  var idTokenFilter = {
2827
2823
  homeAccountId: account.homeAccountId,
2828
2824
  environment: account.environment,
@@ -2837,7 +2833,10 @@
2837
2833
  return null;
2838
2834
  }
2839
2835
  else if (numIdTokens > 1) {
2840
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2836
+ idTokens.forEach(function (idToken) {
2837
+ _this.removeItem(idToken.generateCredentialKey());
2838
+ });
2839
+ return null;
2841
2840
  }
2842
2841
  return idTokens[0];
2843
2842
  };
@@ -2849,6 +2848,7 @@
2849
2848
  * @param authScheme
2850
2849
  */
2851
2850
  CacheManager.prototype.readAccessTokenFromCache = function (clientId, account, scopes, authScheme, keyId) {
2851
+ var _this = this;
2852
2852
  // Distinguish between Bearer and PoP/SSH token cache types
2853
2853
  var credentialType = (authScheme && authScheme !== exports.AuthenticationScheme.BEARER) ? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME : CredentialType.ACCESS_TOKEN;
2854
2854
  var accessTokenFilter = {
@@ -2868,7 +2868,10 @@
2868
2868
  return null;
2869
2869
  }
2870
2870
  else if (numAccessTokens > 1) {
2871
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
2871
+ accessTokens.forEach(function (accessToken) {
2872
+ _this.removeItem(accessToken.generateCredentialKey());
2873
+ });
2874
+ return null;
2872
2875
  }
2873
2876
  return accessTokens[0];
2874
2877
  };
@@ -3168,14 +3171,10 @@
3168
3171
  });
3169
3172
  });
3170
3173
  };
3171
- DefaultStorageClass.prototype.updateCredentialCacheKey = function () {
3172
- var notImplErr = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";
3173
- throw AuthError.createUnexpectedError(notImplErr);
3174
- };
3175
3174
  return DefaultStorageClass;
3176
3175
  }(CacheManager));
3177
3176
 
3178
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3177
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3179
3178
 
3180
3179
  /*
3181
3180
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3257,7 +3256,7 @@
3257
3256
  return __assign({ clientCapabilities: [] }, authOptions);
3258
3257
  }
3259
3258
 
3260
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3259
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3261
3260
 
3262
3261
  /*
3263
3262
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3277,7 +3276,7 @@
3277
3276
  return ServerError;
3278
3277
  }(AuthError));
3279
3278
 
3280
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3279
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3281
3280
 
3282
3281
  /*
3283
3282
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3373,7 +3372,7 @@
3373
3372
  return ThrottlingUtils;
3374
3373
  }());
3375
3374
 
3376
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3375
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3377
3376
 
3378
3377
  /*
3379
3378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3422,7 +3421,7 @@
3422
3421
  return NetworkManager;
3423
3422
  }());
3424
3423
 
3425
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3424
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3426
3425
  /*
3427
3426
  * Copyright (c) Microsoft Corporation. All rights reserved.
3428
3427
  * Licensed under the MIT License.
@@ -3433,7 +3432,7 @@
3433
3432
  CcsCredentialType["UPN"] = "UPN";
3434
3433
  })(CcsCredentialType || (CcsCredentialType = {}));
3435
3434
 
3436
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3435
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3437
3436
 
3438
3437
  /*
3439
3438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3522,7 +3521,7 @@
3522
3521
  return BaseClient;
3523
3522
  }());
3524
3523
 
3525
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3524
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3526
3525
 
3527
3526
  /*
3528
3527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3608,7 +3607,7 @@
3608
3607
  return RequestValidator;
3609
3608
  }());
3610
3609
 
3611
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3610
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3612
3611
 
3613
3612
  /*
3614
3613
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3948,7 +3947,7 @@
3948
3947
  return RequestParameterBuilder;
3949
3948
  }());
3950
3949
 
3951
- /*! @azure/msal-common v5.1.2 2022-08-03 */
3950
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
3952
3951
 
3953
3952
  /*
3954
3953
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4013,7 +4012,7 @@
4013
4012
  return IdTokenEntity;
4014
4013
  }(CredentialEntity));
4015
4014
 
4016
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4015
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4017
4016
  /*
4018
4017
  * Copyright (c) Microsoft Corporation. All rights reserved.
4019
4018
  * Licensed under the MIT License.
@@ -4063,7 +4062,7 @@
4063
4062
  return TimeUtils;
4064
4063
  }());
4065
4064
 
4066
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4065
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4067
4066
 
4068
4067
  /*
4069
4068
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4170,7 +4169,7 @@
4170
4169
  return AccessTokenEntity;
4171
4170
  }(CredentialEntity));
4172
4171
 
4173
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4172
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4174
4173
 
4175
4174
  /*
4176
4175
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4237,7 +4236,7 @@
4237
4236
  return RefreshTokenEntity;
4238
4237
  }(CredentialEntity));
4239
4238
 
4240
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4239
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4241
4240
 
4242
4241
  /*
4243
4242
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4301,7 +4300,7 @@
4301
4300
  return InteractionRequiredAuthError;
4302
4301
  }(AuthError));
4303
4302
 
4304
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4303
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4305
4304
  /*
4306
4305
  * Copyright (c) Microsoft Corporation. All rights reserved.
4307
4306
  * Licensed under the MIT License.
@@ -4317,7 +4316,7 @@
4317
4316
  return CacheRecord;
4318
4317
  }());
4319
4318
 
4320
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4319
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4321
4320
 
4322
4321
  /*
4323
4322
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4388,7 +4387,7 @@
4388
4387
  return ProtocolUtils;
4389
4388
  }());
4390
4389
 
4391
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4390
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4392
4391
 
4393
4392
  /*
4394
4393
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4589,7 +4588,7 @@
4589
4588
  return UrlString;
4590
4589
  }());
4591
4590
 
4592
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4591
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4593
4592
 
4594
4593
  /*
4595
4594
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4664,7 +4663,7 @@
4664
4663
  return PopTokenGenerator;
4665
4664
  }());
4666
4665
 
4667
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4666
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4668
4667
 
4669
4668
  /*
4670
4669
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4734,7 +4733,7 @@
4734
4733
  return AppMetadataEntity;
4735
4734
  }());
4736
4735
 
4737
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4736
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4738
4737
  /*
4739
4738
  * Copyright (c) Microsoft Corporation. All rights reserved.
4740
4739
  * Licensed under the MIT License.
@@ -4770,7 +4769,7 @@
4770
4769
  return TokenCacheContext;
4771
4770
  }());
4772
4771
 
4773
- /*! @azure/msal-common v5.1.2 2022-08-03 */
4772
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
4774
4773
 
4775
4774
  /*
4776
4775
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5034,7 +5033,7 @@
5034
5033
  return ResponseHandler;
5035
5034
  }());
5036
5035
 
5037
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5036
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5038
5037
 
5039
5038
  /*
5040
5039
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5318,7 +5317,7 @@
5318
5317
  if (request.domainHint) {
5319
5318
  parameterBuilder.addDomainHint(request.domainHint);
5320
5319
  }
5321
- // Add sid or loginHint with preference for login_hint claim (in request) -> sid -> loginHint (upn/email) -> username of AccountInfo object
5320
+ // Add sid or loginHint with preference for sid -> loginHint -> username of AccountInfo object
5322
5321
  if (request.prompt !== PromptValue.SELECT_ACCOUNT) {
5323
5322
  // AAD will throw if prompt=select_account is passed with an account hint
5324
5323
  if (request.sid && request.prompt === PromptValue.NONE) {
@@ -5328,24 +5327,9 @@
5328
5327
  }
5329
5328
  else if (request.account) {
5330
5329
  var accountSid = this.extractAccountSid(request.account);
5331
- var accountLoginHintClaim = this.extractLoginHint(request.account);
5332
- // If login_hint claim is present, use it over sid/username
5333
- if (accountLoginHintClaim) {
5334
- this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account");
5335
- parameterBuilder.addLoginHint(accountLoginHintClaim);
5336
- try {
5337
- var clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
5338
- parameterBuilder.addCcsOid(clientInfo);
5339
- }
5340
- catch (e) {
5341
- this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
5342
- }
5343
- }
5344
- else if (accountSid && request.prompt === PromptValue.NONE) {
5345
- /*
5346
- * If account and loginHint are provided, we will check account first for sid before adding loginHint
5347
- * SessionId is only used in silent calls
5348
- */
5330
+ // If account and loginHint are provided, we will check account first for sid before adding loginHint
5331
+ if (accountSid && request.prompt === PromptValue.NONE) {
5332
+ // SessionId is only used in silent calls
5349
5333
  this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account");
5350
5334
  parameterBuilder.addSid(accountSid);
5351
5335
  try {
@@ -5353,7 +5337,7 @@
5353
5337
  parameterBuilder.addCcsOid(clientInfo);
5354
5338
  }
5355
5339
  catch (e) {
5356
- this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
5340
+ this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
5357
5341
  }
5358
5342
  }
5359
5343
  else if (request.loginHint) {
@@ -5370,7 +5354,7 @@
5370
5354
  parameterBuilder.addCcsOid(clientInfo);
5371
5355
  }
5372
5356
  catch (e) {
5373
- this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
5357
+ this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
5374
5358
  }
5375
5359
  }
5376
5360
  }
@@ -5425,17 +5409,16 @@
5425
5409
  * @param account
5426
5410
  */
5427
5411
  AuthorizationCodeClient.prototype.extractAccountSid = function (account) {
5428
- var _a;
5429
- return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a["sid"]) || null;
5430
- };
5431
- AuthorizationCodeClient.prototype.extractLoginHint = function (account) {
5432
- var _a;
5433
- return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a["login_hint"]) || null;
5412
+ if (account.idTokenClaims) {
5413
+ var tokenClaims = account.idTokenClaims;
5414
+ return tokenClaims.sid || null;
5415
+ }
5416
+ return null;
5434
5417
  };
5435
5418
  return AuthorizationCodeClient;
5436
5419
  }(BaseClient));
5437
5420
 
5438
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5421
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5439
5422
 
5440
5423
  /*
5441
5424
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5646,7 +5629,7 @@
5646
5629
  return RefreshTokenClient;
5647
5630
  }(BaseClient));
5648
5631
 
5649
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5632
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5650
5633
 
5651
5634
  /*
5652
5635
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5769,7 +5752,7 @@
5769
5752
  return SilentFlowClient;
5770
5753
  }(BaseClient));
5771
5754
 
5772
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5755
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5773
5756
  /*
5774
5757
  * Copyright (c) Microsoft Corporation. All rights reserved.
5775
5758
  * Licensed under the MIT License.
@@ -5780,7 +5763,7 @@
5780
5763
  response.hasOwnProperty("issuer"));
5781
5764
  }
5782
5765
 
5783
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5766
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5784
5767
  /*
5785
5768
  * Copyright (c) Microsoft Corporation. All rights reserved.
5786
5769
  * Licensed under the MIT License.
@@ -5794,7 +5777,7 @@
5794
5777
  ProtocolMode["OIDC"] = "OIDC";
5795
5778
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
5796
5779
 
5797
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5780
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5798
5781
 
5799
5782
  /*
5800
5783
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5869,7 +5852,7 @@
5869
5852
  return AuthorityMetadataEntity;
5870
5853
  }());
5871
5854
 
5872
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5855
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5873
5856
  /*
5874
5857
  * Copyright (c) Microsoft Corporation. All rights reserved.
5875
5858
  * Licensed under the MIT License.
@@ -5879,7 +5862,7 @@
5879
5862
  response.hasOwnProperty("metadata"));
5880
5863
  }
5881
5864
 
5882
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5865
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5883
5866
 
5884
5867
  /*
5885
5868
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5993,7 +5976,7 @@
5993
5976
  return RegionDiscovery;
5994
5977
  }());
5995
5978
 
5996
- /*! @azure/msal-common v5.1.2 2022-08-03 */
5979
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
5997
5980
 
5998
5981
  /*
5999
5982
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6559,7 +6542,7 @@
6559
6542
  return Authority;
6560
6543
  }());
6561
6544
 
6562
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6545
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6563
6546
 
6564
6547
  /*
6565
6548
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6620,7 +6603,7 @@
6620
6603
  return AuthorityFactory;
6621
6604
  }());
6622
6605
 
6623
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6606
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6624
6607
 
6625
6608
  /*
6626
6609
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6651,7 +6634,7 @@
6651
6634
  return ServerTelemetryEntity;
6652
6635
  }());
6653
6636
 
6654
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6637
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6655
6638
 
6656
6639
  /*
6657
6640
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6679,7 +6662,7 @@
6679
6662
  return ThrottlingEntity;
6680
6663
  }());
6681
6664
 
6682
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6665
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6683
6666
 
6684
6667
  /*
6685
6668
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6696,7 +6679,7 @@
6696
6679
  }
6697
6680
  };
6698
6681
 
6699
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6682
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6700
6683
 
6701
6684
  /*
6702
6685
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6755,7 +6738,7 @@
6755
6738
  return AuthenticationHeaderParser;
6756
6739
  }());
6757
6740
 
6758
- /*! @azure/msal-common v5.1.2 2022-08-03 */
6741
+ /*! @azure/msal-common v5.1.3 2023-08-24 */
6759
6742
 
6760
6743
  /*
6761
6744
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8892,7 +8875,7 @@
8892
8875
 
8893
8876
  /* eslint-disable header/header */
8894
8877
  var name = "@azure/msal-browser";
8895
- var version = "2.19.2";
8878
+ var version = "2.19.3";
8896
8879
 
8897
8880
  /*
8898
8881
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10493,25 +10476,6 @@
10493
10476
  }
10494
10477
  return null;
10495
10478
  };
10496
- /**
10497
- * Updates a credential's cache key if the current cache key is outdated
10498
- */
10499
- BrowserCacheManager.prototype.updateCredentialCacheKey = function (currentCacheKey, credential) {
10500
- var updatedCacheKey = credential.generateCredentialKey();
10501
- if (currentCacheKey !== updatedCacheKey) {
10502
- var cacheItem = this.getItem(currentCacheKey);
10503
- if (cacheItem) {
10504
- this.removeItem(currentCacheKey);
10505
- this.setItem(updatedCacheKey, cacheItem);
10506
- this.logger.verbose("Updated an outdated " + credential.credentialType + " cache key");
10507
- return updatedCacheKey;
10508
- }
10509
- else {
10510
- this.logger.error("Attempted to update an outdated " + credential.credentialType + " cache key but no item matching the outdated key was found in storage");
10511
- }
10512
- }
10513
- return currentCacheKey;
10514
- };
10515
10479
  return BrowserCacheManager;
10516
10480
  }(CacheManager));
10517
10481
  var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {