@azure/msal-browser 2.28.2 → 2.28.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 (74) 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.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.js +3 -1
  7. package/dist/app/PublicClientApplication.js.map +1 -1
  8. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  9. package/dist/cache/AsyncMemoryStorage.d.ts +7 -2
  10. package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
  11. package/dist/cache/AsyncMemoryStorage.js +19 -15
  12. package/dist/cache/AsyncMemoryStorage.js.map +1 -1
  13. package/dist/cache/BrowserCacheManager.js +1 -1
  14. package/dist/cache/BrowserStorage.js +1 -1
  15. package/dist/cache/CryptoKeyStore.d.ts +18 -0
  16. package/dist/cache/CryptoKeyStore.d.ts.map +1 -0
  17. package/dist/cache/CryptoKeyStore.js +58 -0
  18. package/dist/cache/CryptoKeyStore.js.map +1 -0
  19. package/dist/cache/DatabaseStorage.d.ts.map +1 -1
  20. package/dist/cache/DatabaseStorage.js +10 -22
  21. package/dist/cache/DatabaseStorage.js.map +1 -1
  22. package/dist/cache/MemoryStorage.js +1 -1
  23. package/dist/cache/TokenCache.js +1 -1
  24. package/dist/config/Configuration.js +1 -1
  25. package/dist/crypto/BrowserCrypto.js +1 -1
  26. package/dist/crypto/CryptoOps.d.ts +0 -12
  27. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  28. package/dist/crypto/CryptoOps.js +6 -36
  29. package/dist/crypto/CryptoOps.js.map +1 -1
  30. package/dist/crypto/GuidGenerator.js +1 -1
  31. package/dist/crypto/PkceGenerator.js +1 -1
  32. package/dist/crypto/SignedHttpRequest.js +1 -1
  33. package/dist/encode/Base64Decode.js +1 -1
  34. package/dist/encode/Base64Encode.js +1 -1
  35. package/dist/error/BrowserAuthError.js +1 -1
  36. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  37. package/dist/error/NativeAuthError.js +1 -1
  38. package/dist/event/EventHandler.js +1 -1
  39. package/dist/event/EventMessage.js +1 -1
  40. package/dist/event/EventType.js +1 -1
  41. package/dist/index.cjs.js +139 -124
  42. package/dist/index.cjs.js.map +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  45. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  46. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  47. package/dist/interaction_client/PopupClient.js +1 -1
  48. package/dist/interaction_client/RedirectClient.js +1 -1
  49. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  50. package/dist/interaction_client/SilentCacheClient.js +1 -1
  51. package/dist/interaction_client/SilentIframeClient.js +1 -1
  52. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  53. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  54. package/dist/interaction_handler/InteractionHandler.js +1 -1
  55. package/dist/interaction_handler/RedirectHandler.js +1 -1
  56. package/dist/interaction_handler/SilentHandler.js +1 -1
  57. package/dist/internals.js +1 -1
  58. package/dist/navigation/NavigationClient.js +1 -1
  59. package/dist/network/FetchClient.js +1 -1
  60. package/dist/network/XhrClient.js +1 -1
  61. package/dist/packageMetadata.d.ts +1 -1
  62. package/dist/packageMetadata.js +2 -2
  63. package/dist/packageMetadata.js.map +1 -1
  64. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  65. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  66. package/dist/utils/BrowserConstants.js +1 -1
  67. package/dist/utils/BrowserProtocolUtils.js +1 -1
  68. package/dist/utils/BrowserStringUtils.js +1 -1
  69. package/dist/utils/BrowserUtils.js +1 -1
  70. package/dist/utils/MathUtils.js +1 -1
  71. package/lib/msal-browser.js +139 -124
  72. package/lib/msal-browser.js.map +1 -1
  73. package/lib/msal-browser.min.js +29 -29
  74. package/package.json +2 -2
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.28.2 2022-09-06 */
1
+ /*! @azure/msal-browser v2.28.3 2022-09-12 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -117,7 +117,7 @@ function __spread() {
117
117
  return ar;
118
118
  }
119
119
 
120
- /*! @azure/msal-common v7.4.0 2022-09-06 */
120
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
121
121
  /*! *****************************************************************************
122
122
  Copyright (c) Microsoft Corporation.
123
123
 
@@ -204,7 +204,7 @@ function __spreadArrays() {
204
204
  return r;
205
205
  }
206
206
 
207
- /*! @azure/msal-common v7.4.0 2022-09-06 */
207
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
208
208
 
209
209
  /*
210
210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -581,7 +581,7 @@ var JsonTypes;
581
581
  JsonTypes["Jwk"] = "JWK";
582
582
  })(JsonTypes || (JsonTypes = {}));
583
583
 
584
- /*! @azure/msal-common v7.4.0 2022-09-06 */
584
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
585
585
 
586
586
  /*
587
587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -637,7 +637,7 @@ var AuthError = /** @class */ (function (_super) {
637
637
  return AuthError;
638
638
  }(Error));
639
639
 
640
- /*! @azure/msal-common v7.4.0 2022-09-06 */
640
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
641
641
 
642
642
  /*
643
643
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -712,7 +712,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
712
712
  }
713
713
  };
714
714
 
715
- /*! @azure/msal-common v7.4.0 2022-09-06 */
715
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
716
716
 
717
717
  /*
718
718
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1184,7 +1184,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1184
1184
  return ClientAuthError;
1185
1185
  }(AuthError));
1186
1186
 
1187
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1187
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1188
1188
 
1189
1189
  /*
1190
1190
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1309,7 +1309,7 @@ var StringUtils = /** @class */ (function () {
1309
1309
  return StringUtils;
1310
1310
  }());
1311
1311
 
1312
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1312
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1313
1313
 
1314
1314
  /*
1315
1315
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1489,12 +1489,12 @@ var Logger = /** @class */ (function () {
1489
1489
  return Logger;
1490
1490
  }());
1491
1491
 
1492
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1492
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1493
1493
  /* eslint-disable header/header */
1494
1494
  var name$1 = "@azure/msal-common";
1495
- var version$1 = "7.4.0";
1495
+ var version$1 = "7.4.1";
1496
1496
 
1497
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1497
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1498
1498
  /*
1499
1499
  * Copyright (c) Microsoft Corporation. All rights reserved.
1500
1500
  * Licensed under the MIT License.
@@ -1515,7 +1515,7 @@ exports.AzureCloudInstance = void 0;
1515
1515
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1516
1516
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1517
1517
 
1518
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1518
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1519
1519
 
1520
1520
  /*
1521
1521
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1674,7 +1674,7 @@ var CredentialEntity = /** @class */ (function () {
1674
1674
  return CredentialEntity;
1675
1675
  }());
1676
1676
 
1677
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1677
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1678
1678
 
1679
1679
  /*
1680
1680
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1929,7 +1929,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1929
1929
  return ClientConfigurationError;
1930
1930
  }(ClientAuthError));
1931
1931
 
1932
- /*! @azure/msal-common v7.4.0 2022-09-06 */
1932
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
1933
1933
 
1934
1934
  /*
1935
1935
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2113,7 +2113,7 @@ var ScopeSet = /** @class */ (function () {
2113
2113
  return ScopeSet;
2114
2114
  }());
2115
2115
 
2116
- /*! @azure/msal-common v7.4.0 2022-09-06 */
2116
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
2117
2117
 
2118
2118
  /*
2119
2119
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2151,7 +2151,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2151
2151
  };
2152
2152
  }
2153
2153
 
2154
- /*! @azure/msal-common v7.4.0 2022-09-06 */
2154
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
2155
2155
  /*
2156
2156
  * Copyright (c) Microsoft Corporation. All rights reserved.
2157
2157
  * Licensed under the MIT License.
@@ -2165,7 +2165,7 @@ var AuthorityType;
2165
2165
  AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
2166
2166
  })(AuthorityType || (AuthorityType = {}));
2167
2167
 
2168
- /*! @azure/msal-common v7.4.0 2022-09-06 */
2168
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
2169
2169
 
2170
2170
  /*
2171
2171
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2400,7 +2400,7 @@ var AccountEntity = /** @class */ (function () {
2400
2400
  return AccountEntity;
2401
2401
  }());
2402
2402
 
2403
- /*! @azure/msal-common v7.4.0 2022-09-06 */
2403
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
2404
2404
 
2405
2405
  /*
2406
2406
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2438,7 +2438,7 @@ var AuthToken = /** @class */ (function () {
2438
2438
  return AuthToken;
2439
2439
  }());
2440
2440
 
2441
- /*! @azure/msal-common v7.4.0 2022-09-06 */
2441
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
2442
2442
 
2443
2443
  /*
2444
2444
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3313,7 +3313,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3313
3313
  return DefaultStorageClass;
3314
3314
  }(CacheManager));
3315
3315
 
3316
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3316
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3317
3317
 
3318
3318
  /*
3319
3319
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3407,7 +3407,7 @@ function buildAuthOptions(authOptions) {
3407
3407
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3408
3408
  }
3409
3409
 
3410
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3410
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3411
3411
 
3412
3412
  /*
3413
3413
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3427,7 +3427,7 @@ var ServerError = /** @class */ (function (_super) {
3427
3427
  return ServerError;
3428
3428
  }(AuthError));
3429
3429
 
3430
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3430
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3431
3431
 
3432
3432
  /*
3433
3433
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3523,7 +3523,7 @@ var ThrottlingUtils = /** @class */ (function () {
3523
3523
  return ThrottlingUtils;
3524
3524
  }());
3525
3525
 
3526
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3526
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3527
3527
 
3528
3528
  /*
3529
3529
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3572,7 +3572,7 @@ var NetworkManager = /** @class */ (function () {
3572
3572
  return NetworkManager;
3573
3573
  }());
3574
3574
 
3575
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3575
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3576
3576
  /*
3577
3577
  * Copyright (c) Microsoft Corporation. All rights reserved.
3578
3578
  * Licensed under the MIT License.
@@ -3583,7 +3583,7 @@ var CcsCredentialType;
3583
3583
  CcsCredentialType["UPN"] = "UPN";
3584
3584
  })(CcsCredentialType || (CcsCredentialType = {}));
3585
3585
 
3586
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3586
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3587
3587
 
3588
3588
  /*
3589
3589
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3674,7 +3674,7 @@ var BaseClient = /** @class */ (function () {
3674
3674
  return BaseClient;
3675
3675
  }());
3676
3676
 
3677
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3677
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3678
3678
 
3679
3679
  /*
3680
3680
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3760,7 +3760,7 @@ var RequestValidator = /** @class */ (function () {
3760
3760
  return RequestValidator;
3761
3761
  }());
3762
3762
 
3763
- /*! @azure/msal-common v7.4.0 2022-09-06 */
3763
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
3764
3764
 
3765
3765
  /*
3766
3766
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4138,7 +4138,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4138
4138
  return RequestParameterBuilder;
4139
4139
  }());
4140
4140
 
4141
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4141
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4142
4142
 
4143
4143
  /*
4144
4144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4202,7 +4202,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4202
4202
  return IdTokenEntity;
4203
4203
  }(CredentialEntity));
4204
4204
 
4205
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4205
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4206
4206
  /*
4207
4207
  * Copyright (c) Microsoft Corporation. All rights reserved.
4208
4208
  * Licensed under the MIT License.
@@ -4252,7 +4252,7 @@ var TimeUtils = /** @class */ (function () {
4252
4252
  return TimeUtils;
4253
4253
  }());
4254
4254
 
4255
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4255
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4256
4256
 
4257
4257
  /*
4258
4258
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4366,7 +4366,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4366
4366
  return AccessTokenEntity;
4367
4367
  }(CredentialEntity));
4368
4368
 
4369
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4369
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4370
4370
 
4371
4371
  /*
4372
4372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4433,7 +4433,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4433
4433
  return RefreshTokenEntity;
4434
4434
  }(CredentialEntity));
4435
4435
 
4436
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4436
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4437
4437
 
4438
4438
  /*
4439
4439
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4508,7 +4508,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4508
4508
  return InteractionRequiredAuthError;
4509
4509
  }(AuthError));
4510
4510
 
4511
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4511
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4512
4512
  /*
4513
4513
  * Copyright (c) Microsoft Corporation. All rights reserved.
4514
4514
  * Licensed under the MIT License.
@@ -4524,7 +4524,7 @@ var CacheRecord = /** @class */ (function () {
4524
4524
  return CacheRecord;
4525
4525
  }());
4526
4526
 
4527
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4527
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4528
4528
 
4529
4529
  /*
4530
4530
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4595,7 +4595,7 @@ var ProtocolUtils = /** @class */ (function () {
4595
4595
  return ProtocolUtils;
4596
4596
  }());
4597
4597
 
4598
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4598
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4599
4599
 
4600
4600
  /*
4601
4601
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4829,7 +4829,7 @@ var UrlString = /** @class */ (function () {
4829
4829
  return UrlString;
4830
4830
  }());
4831
4831
 
4832
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4832
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4833
4833
 
4834
4834
  /*
4835
4835
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4930,7 +4930,7 @@ var PopTokenGenerator = /** @class */ (function () {
4930
4930
  return PopTokenGenerator;
4931
4931
  }());
4932
4932
 
4933
- /*! @azure/msal-common v7.4.0 2022-09-06 */
4933
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
4934
4934
 
4935
4935
  /*
4936
4936
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5000,7 +5000,7 @@ var AppMetadataEntity = /** @class */ (function () {
5000
5000
  return AppMetadataEntity;
5001
5001
  }());
5002
5002
 
5003
- /*! @azure/msal-common v7.4.0 2022-09-06 */
5003
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
5004
5004
  /*
5005
5005
  * Copyright (c) Microsoft Corporation. All rights reserved.
5006
5006
  * Licensed under the MIT License.
@@ -5036,7 +5036,7 @@ var AppMetadataEntity = /** @class */ (function () {
5036
5036
  return TokenCacheContext;
5037
5037
  }());
5038
5038
 
5039
- /*! @azure/msal-common v7.4.0 2022-09-06 */
5039
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
5040
5040
 
5041
5041
  /*
5042
5042
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5307,7 +5307,7 @@ var ResponseHandler = /** @class */ (function () {
5307
5307
  return ResponseHandler;
5308
5308
  }());
5309
5309
 
5310
- /*! @azure/msal-common v7.4.0 2022-09-06 */
5310
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
5311
5311
 
5312
5312
  /*
5313
5313
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5758,7 +5758,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
5758
5758
  return AuthorizationCodeClient;
5759
5759
  }(BaseClient));
5760
5760
 
5761
- /*! @azure/msal-common v7.4.0 2022-09-06 */
5761
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
5762
5762
  /*
5763
5763
  * Copyright (c) Microsoft Corporation. All rights reserved.
5764
5764
  * Licensed under the MIT License.
@@ -5876,7 +5876,7 @@ var PerformanceEventStatus;
5876
5876
  PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
5877
5877
  })(PerformanceEventStatus || (PerformanceEventStatus = {}));
5878
5878
 
5879
- /*! @azure/msal-common v7.4.0 2022-09-06 */
5879
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
5880
5880
 
5881
5881
  /*
5882
5882
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6112,7 +6112,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
6112
6112
  return RefreshTokenClient;
6113
6113
  }(BaseClient));
6114
6114
 
6115
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6115
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6116
6116
 
6117
6117
  /*
6118
6118
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6228,7 +6228,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
6228
6228
  return SilentFlowClient;
6229
6229
  }(BaseClient));
6230
6230
 
6231
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6231
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6232
6232
  /*
6233
6233
  * Copyright (c) Microsoft Corporation. All rights reserved.
6234
6234
  * Licensed under the MIT License.
@@ -6240,7 +6240,7 @@ function isOpenIdConfigResponse(response) {
6240
6240
  response.hasOwnProperty("jwks_uri"));
6241
6241
  }
6242
6242
 
6243
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6243
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6244
6244
  /*
6245
6245
  * Copyright (c) Microsoft Corporation. All rights reserved.
6246
6246
  * Licensed under the MIT License.
@@ -6249,7 +6249,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
6249
6249
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6250
6250
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6251
6251
 
6252
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6252
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6253
6253
  /*
6254
6254
  * Copyright (c) Microsoft Corporation. All rights reserved.
6255
6255
  * Licensed under the MIT License.
@@ -6263,7 +6263,7 @@ exports.ProtocolMode = void 0;
6263
6263
  ProtocolMode["OIDC"] = "OIDC";
6264
6264
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6265
6265
 
6266
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6266
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6267
6267
 
6268
6268
  /*
6269
6269
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6340,7 +6340,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6340
6340
  return AuthorityMetadataEntity;
6341
6341
  }());
6342
6342
 
6343
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6343
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6344
6344
  /*
6345
6345
  * Copyright (c) Microsoft Corporation. All rights reserved.
6346
6346
  * Licensed under the MIT License.
@@ -6350,7 +6350,7 @@ function isCloudInstanceDiscoveryResponse(response) {
6350
6350
  response.hasOwnProperty("metadata"));
6351
6351
  }
6352
6352
 
6353
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6353
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6354
6354
 
6355
6355
  /*
6356
6356
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6472,7 +6472,7 @@ var RegionDiscovery = /** @class */ (function () {
6472
6472
  return RegionDiscovery;
6473
6473
  }());
6474
6474
 
6475
- /*! @azure/msal-common v7.4.0 2022-09-06 */
6475
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
6476
6476
 
6477
6477
  /*
6478
6478
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7134,7 +7134,7 @@ var Authority = /** @class */ (function () {
7134
7134
  return Authority;
7135
7135
  }());
7136
7136
 
7137
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7137
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7138
7138
 
7139
7139
  /*
7140
7140
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7195,7 +7195,7 @@ var AuthorityFactory = /** @class */ (function () {
7195
7195
  return AuthorityFactory;
7196
7196
  }());
7197
7197
 
7198
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7198
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7199
7199
 
7200
7200
  /*
7201
7201
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7226,7 +7226,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
7226
7226
  return ServerTelemetryEntity;
7227
7227
  }());
7228
7228
 
7229
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7229
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7230
7230
 
7231
7231
  /*
7232
7232
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7254,7 +7254,7 @@ var ThrottlingEntity = /** @class */ (function () {
7254
7254
  return ThrottlingEntity;
7255
7255
  }());
7256
7256
 
7257
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7257
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7258
7258
 
7259
7259
  /*
7260
7260
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7271,7 +7271,7 @@ var StubbedNetworkModule = {
7271
7271
  }
7272
7272
  };
7273
7273
 
7274
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7274
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7275
7275
 
7276
7276
  /*
7277
7277
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7316,7 +7316,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
7316
7316
  return JoseHeaderError;
7317
7317
  }(AuthError));
7318
7318
 
7319
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7319
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7320
7320
 
7321
7321
  /*
7322
7322
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7356,7 +7356,7 @@ var JoseHeader = /** @class */ (function () {
7356
7356
  return JoseHeader;
7357
7357
  }());
7358
7358
 
7359
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7359
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7360
7360
 
7361
7361
  /*
7362
7362
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7415,7 +7415,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
7415
7415
  return AuthenticationHeaderParser;
7416
7416
  }());
7417
7417
 
7418
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7418
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7419
7419
 
7420
7420
  /*
7421
7421
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7577,7 +7577,7 @@ var ServerTelemetryManager = /** @class */ (function () {
7577
7577
  return ServerTelemetryManager;
7578
7578
  }());
7579
7579
 
7580
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7580
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7581
7581
 
7582
7582
  /*
7583
7583
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7853,7 +7853,7 @@ var PerformanceClient = /** @class */ (function () {
7853
7853
  return PerformanceClient;
7854
7854
  }());
7855
7855
 
7856
- /*! @azure/msal-common v7.4.0 2022-09-06 */
7856
+ /*! @azure/msal-common v7.4.1 2022-09-12 */
7857
7857
 
7858
7858
  /*
7859
7859
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9681,7 +9681,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
9681
9681
 
9682
9682
  /* eslint-disable header/header */
9683
9683
  var name = "@azure/msal-browser";
9684
- var version = "2.28.2";
9684
+ var version = "2.28.3";
9685
9685
 
9686
9686
  /*
9687
9687
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14107,29 +14107,17 @@ var DatabaseStorage = /** @class */ (function () {
14107
14107
  */
14108
14108
  DatabaseStorage.prototype.deleteDatabase = function () {
14109
14109
  return __awaiter$1(this, void 0, void 0, function () {
14110
- var existingDatabases, database;
14111
14110
  return __generator$1(this, function (_a) {
14112
- switch (_a.label) {
14113
- case 0:
14114
- // Check if database being deleted exists
14115
- if (this.db && this.dbOpen) {
14116
- this.closeConnection();
14117
- }
14118
- return [4 /*yield*/, window.indexedDB.databases()];
14119
- case 1:
14120
- existingDatabases = _a.sent();
14121
- database = existingDatabases.find(function (database) { return database.name === DB_NAME; });
14122
- // If database exists, delete it
14123
- if (database) {
14124
- return [2 /*return*/, new Promise(function (resolve, reject) {
14125
- var deleteDbRequest = window.indexedDB.deleteDatabase(DB_NAME);
14126
- deleteDbRequest.addEventListener("success", function () { return resolve(true); });
14127
- deleteDbRequest.addEventListener("error", function () { return reject(false); });
14128
- })];
14129
- }
14130
- // Database doesn't exist, return true
14131
- return [2 /*return*/, true];
14111
+ // Check if database being deleted exists
14112
+ if (this.db && this.dbOpen) {
14113
+ this.closeConnection();
14132
14114
  }
14115
+ return [2 /*return*/, new Promise(function (resolve, reject) {
14116
+ var deleteDbRequest = window.indexedDB.deleteDatabase(DB_NAME);
14117
+ deleteDbRequest.addEventListener("success", function () { return resolve(true); });
14118
+ deleteDbRequest.addEventListener("blocked", function () { return resolve(true); });
14119
+ deleteDbRequest.addEventListener("error", function () { return reject(false); });
14120
+ })];
14133
14121
  });
14134
14122
  });
14135
14123
  };
@@ -14298,34 +14286,38 @@ var AsyncMemoryStorage = /** @class */ (function () {
14298
14286
  });
14299
14287
  };
14300
14288
  /**
14301
- * Clears in-memory Map and tries to delete the IndexedDB database.
14289
+ * Clears in-memory Map
14290
+ */
14291
+ AsyncMemoryStorage.prototype.clearInMemory = function () {
14292
+ // InMemory cache is a Map instance, clear is straightforward
14293
+ this.logger.verbose("Deleting in-memory keystore " + this.storeName);
14294
+ this.inMemoryCache.clear();
14295
+ this.logger.verbose("In-memory keystore " + this.storeName + " deleted");
14296
+ };
14297
+ /**
14298
+ * Tries to delete the IndexedDB database
14299
+ * @returns
14302
14300
  */
14303
- AsyncMemoryStorage.prototype.clear = function () {
14301
+ AsyncMemoryStorage.prototype.clearPersistent = function () {
14304
14302
  return __awaiter$1(this, void 0, void 0, function () {
14305
14303
  var dbDeleted, e_6;
14306
14304
  return __generator$1(this, function (_a) {
14307
14305
  switch (_a.label) {
14308
14306
  case 0:
14309
- // InMemory cache is a Map instance, clear is straightforward
14310
- this.logger.verbose("Deleting in-memory keystore " + this.storeName);
14311
- this.inMemoryCache.clear();
14312
- this.logger.verbose("In-memory keystore " + this.storeName + " deleted");
14313
- this.logger.verbose("Deleting persistent keystore " + this.storeName);
14314
- _a.label = 1;
14315
- case 1:
14316
- _a.trys.push([1, 3, , 4]);
14307
+ _a.trys.push([0, 2, , 3]);
14308
+ this.logger.verbose("Deleting persistent keystore");
14317
14309
  return [4 /*yield*/, this.indexedDBCache.deleteDatabase()];
14318
- case 2:
14310
+ case 1:
14319
14311
  dbDeleted = _a.sent();
14320
14312
  if (dbDeleted) {
14321
- this.logger.verbose("Persistent keystore " + this.storeName + " deleted");
14313
+ this.logger.verbose("Persistent keystore deleted");
14322
14314
  }
14323
14315
  return [2 /*return*/, dbDeleted];
14324
- case 3:
14316
+ case 2:
14325
14317
  e_6 = _a.sent();
14326
14318
  this.handleDatabaseAccessError(e_6);
14327
14319
  return [2 /*return*/, false];
14328
- case 4: return [2 /*return*/];
14320
+ case 3: return [2 /*return*/];
14329
14321
  }
14330
14322
  });
14331
14323
  });
@@ -14342,6 +14334,52 @@ var CryptoKeyStoreNames;
14342
14334
  CryptoKeyStoreNames["asymmetricKeys"] = "asymmetricKeys";
14343
14335
  CryptoKeyStoreNames["symmetricKeys"] = "symmetricKeys";
14344
14336
  })(CryptoKeyStoreNames || (CryptoKeyStoreNames = {}));
14337
+ /**
14338
+ * MSAL CryptoKeyStore DB Version 2
14339
+ */
14340
+ var CryptoKeyStore = /** @class */ (function () {
14341
+ function CryptoKeyStore(logger) {
14342
+ this.logger = logger;
14343
+ this.asymmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.asymmetricKeys);
14344
+ this.symmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.symmetricKeys);
14345
+ }
14346
+ CryptoKeyStore.prototype.clear = function () {
14347
+ return __awaiter$1(this, void 0, void 0, function () {
14348
+ var e_1;
14349
+ return __generator$1(this, function (_a) {
14350
+ switch (_a.label) {
14351
+ case 0:
14352
+ // Delete in-memory keystores
14353
+ this.asymmetricKeys.clearInMemory();
14354
+ this.symmetricKeys.clearInMemory();
14355
+ _a.label = 1;
14356
+ case 1:
14357
+ _a.trys.push([1, 3, , 4]);
14358
+ return [4 /*yield*/, this.asymmetricKeys.clearPersistent()];
14359
+ case 2:
14360
+ _a.sent();
14361
+ return [2 /*return*/, true];
14362
+ case 3:
14363
+ e_1 = _a.sent();
14364
+ if (e_1 instanceof Error) {
14365
+ this.logger.error("Clearing keystore failed with error: " + e_1.message);
14366
+ }
14367
+ else {
14368
+ this.logger.error("Clearing keystore failed with unknown error");
14369
+ }
14370
+ return [2 /*return*/, false];
14371
+ case 4: return [2 /*return*/];
14372
+ }
14373
+ });
14374
+ });
14375
+ };
14376
+ return CryptoKeyStore;
14377
+ }());
14378
+
14379
+ /*
14380
+ * Copyright (c) Microsoft Corporation. All rights reserved.
14381
+ * Licensed under the MIT License.
14382
+ */
14345
14383
  /**
14346
14384
  * This class implements MSAL's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
14347
14385
  * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
@@ -14355,10 +14393,7 @@ var CryptoOps = /** @class */ (function () {
14355
14393
  this.b64Decode = new Base64Decode();
14356
14394
  this.guidGenerator = new GuidGenerator(this.browserCrypto);
14357
14395
  this.pkceGenerator = new PkceGenerator(this.browserCrypto);
14358
- this.cache = {
14359
- asymmetricKeys: new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.asymmetricKeys),
14360
- symmetricKeys: new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.symmetricKeys)
14361
- };
14396
+ this.cache = new CryptoKeyStore(this.logger);
14362
14397
  this.performanceClient = performanceClient;
14363
14398
  }
14364
14399
  /**
@@ -14470,32 +14505,10 @@ var CryptoOps = /** @class */ (function () {
14470
14505
  */
14471
14506
  CryptoOps.prototype.clearKeystore = function () {
14472
14507
  return __awaiter$1(this, void 0, void 0, function () {
14473
- var e_1;
14474
14508
  return __generator$1(this, function (_a) {
14475
14509
  switch (_a.label) {
14476
- case 0:
14477
- _a.trys.push([0, 3, , 4]);
14478
- this.logger.verbose("Deleting in-memory and persistent asymmetric key stores");
14479
- return [4 /*yield*/, this.cache.asymmetricKeys.clear()];
14480
- case 1:
14481
- _a.sent();
14482
- this.logger.verbose("Successfully deleted asymmetric key stores");
14483
- this.logger.verbose("Deleting in-memory and persistent symmetric key stores");
14484
- return [4 /*yield*/, this.cache.symmetricKeys.clear()];
14485
- case 2:
14486
- _a.sent();
14487
- this.logger.verbose("Successfully deleted symmetric key stores");
14488
- return [2 /*return*/, true];
14489
- case 3:
14490
- e_1 = _a.sent();
14491
- if (e_1 instanceof Error) {
14492
- this.logger.error("Clearing keystore failed with error: " + e_1.message);
14493
- }
14494
- else {
14495
- this.logger.error("Clearing keystore failed with unknown error");
14496
- }
14497
- return [2 /*return*/, false];
14498
- case 4: return [2 /*return*/];
14510
+ case 0: return [4 /*yield*/, this.cache.clear()];
14511
+ case 1: return [2 /*return*/, _a.sent()];
14499
14512
  }
14500
14513
  });
14501
14514
  });
@@ -15951,6 +15964,8 @@ var PublicClientApplication = /** @class */ (function (_super) {
15951
15964
  .catch(function (error) {
15952
15965
  _this.activeSilentTokenRequests.delete(silentRequestKey);
15953
15966
  atsMeasurement.endMeasurement({
15967
+ errorCode: error.errorCode,
15968
+ subErrorCode: error.subError,
15954
15969
  success: false
15955
15970
  });
15956
15971
  atsMeasurement.flushMeasurement();