@azure/msal-browser 2.30.0 → 2.31.0

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 (73) hide show
  1. package/README.md +0 -1
  2. package/dist/_virtual/_tslib.js +1 -1
  3. package/dist/app/ClientApplication.d.ts.map +1 -1
  4. package/dist/app/ClientApplication.js +13 -9
  5. package/dist/app/ClientApplication.js.map +1 -1
  6. package/dist/app/IPublicClientApplication.js +1 -1
  7. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  8. package/dist/app/PublicClientApplication.js +8 -6
  9. package/dist/app/PublicClientApplication.js.map +1 -1
  10. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +11 -0
  11. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
  12. package/dist/broker/nativeBroker/NativeMessageHandler.js +16 -1
  13. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
  14. package/dist/cache/AsyncMemoryStorage.js +1 -1
  15. package/dist/cache/BrowserCacheManager.js +1 -1
  16. package/dist/cache/BrowserStorage.js +1 -1
  17. package/dist/cache/CryptoKeyStore.js +1 -1
  18. package/dist/cache/DatabaseStorage.js +1 -1
  19. package/dist/cache/MemoryStorage.js +1 -1
  20. package/dist/cache/TokenCache.js +1 -1
  21. package/dist/config/Configuration.js +1 -1
  22. package/dist/crypto/BrowserCrypto.js +1 -1
  23. package/dist/crypto/CryptoOps.js +1 -1
  24. package/dist/crypto/GuidGenerator.js +1 -1
  25. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  26. package/dist/crypto/MsBrowserCrypto.js +1 -1
  27. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  28. package/dist/crypto/PkceGenerator.js +1 -1
  29. package/dist/crypto/SignedHttpRequest.js +1 -1
  30. package/dist/encode/Base64Decode.js +1 -1
  31. package/dist/encode/Base64Encode.js +1 -1
  32. package/dist/error/BrowserAuthError.js +1 -1
  33. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  34. package/dist/error/NativeAuthError.js +1 -1
  35. package/dist/event/EventHandler.js +1 -1
  36. package/dist/event/EventMessage.js +1 -1
  37. package/dist/event/EventType.js +1 -1
  38. package/dist/index.cjs.js +160 -102
  39. package/dist/index.cjs.js.map +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  42. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  43. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  44. package/dist/interaction_client/NativeInteractionClient.js +28 -7
  45. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  46. package/dist/interaction_client/PopupClient.js +1 -1
  47. package/dist/interaction_client/RedirectClient.js +1 -1
  48. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  49. package/dist/interaction_client/SilentCacheClient.js +1 -1
  50. package/dist/interaction_client/SilentIframeClient.js +1 -1
  51. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  52. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  53. package/dist/interaction_handler/InteractionHandler.js +1 -1
  54. package/dist/interaction_handler/RedirectHandler.js +1 -1
  55. package/dist/interaction_handler/SilentHandler.js +1 -1
  56. package/dist/internals.js +1 -1
  57. package/dist/navigation/NavigationClient.js +1 -1
  58. package/dist/network/FetchClient.js +1 -1
  59. package/dist/network/XhrClient.js +1 -1
  60. package/dist/packageMetadata.d.ts +1 -1
  61. package/dist/packageMetadata.js +2 -2
  62. package/dist/packageMetadata.js.map +1 -1
  63. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  64. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  65. package/dist/utils/BrowserConstants.js +1 -1
  66. package/dist/utils/BrowserProtocolUtils.js +1 -1
  67. package/dist/utils/BrowserStringUtils.js +1 -1
  68. package/dist/utils/BrowserUtils.js +1 -1
  69. package/dist/utils/MathUtils.js +1 -1
  70. package/lib/msal-browser.js +160 -102
  71. package/lib/msal-browser.js.map +1 -1
  72. package/lib/msal-browser.min.js +44 -44
  73. package/package.json +2 -2
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.30.0 2022-10-10 */
1
+ /*! @azure/msal-browser v2.31.0 2022-11-07 */
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.6.0 2022-10-10 */
120
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
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.6.0 2022-10-10 */
207
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
208
208
 
209
209
  /*
210
210
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -585,7 +585,7 @@ var JsonTypes;
585
585
  JsonTypes["Jwk"] = "JWK";
586
586
  })(JsonTypes || (JsonTypes = {}));
587
587
 
588
- /*! @azure/msal-common v7.6.0 2022-10-10 */
588
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
589
589
 
590
590
  /*
591
591
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -641,7 +641,7 @@ var AuthError = /** @class */ (function (_super) {
641
641
  return AuthError;
642
642
  }(Error));
643
643
 
644
- /*! @azure/msal-common v7.6.0 2022-10-10 */
644
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
645
645
 
646
646
  /*
647
647
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -716,7 +716,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
716
716
  }
717
717
  };
718
718
 
719
- /*! @azure/msal-common v7.6.0 2022-10-10 */
719
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
720
720
 
721
721
  /*
722
722
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1211,7 +1211,7 @@ var ClientAuthError = /** @class */ (function (_super) {
1211
1211
  return ClientAuthError;
1212
1212
  }(AuthError));
1213
1213
 
1214
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1214
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1215
1215
 
1216
1216
  /*
1217
1217
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1336,7 +1336,7 @@ var StringUtils = /** @class */ (function () {
1336
1336
  return StringUtils;
1337
1337
  }());
1338
1338
 
1339
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1339
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1340
1340
 
1341
1341
  /*
1342
1342
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1516,12 +1516,12 @@ var Logger = /** @class */ (function () {
1516
1516
  return Logger;
1517
1517
  }());
1518
1518
 
1519
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1519
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1520
1520
  /* eslint-disable header/header */
1521
1521
  var name$1 = "@azure/msal-common";
1522
- var version$1 = "7.6.0";
1522
+ var version$1 = "8.0.0";
1523
1523
 
1524
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1524
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1525
1525
  /*
1526
1526
  * Copyright (c) Microsoft Corporation. All rights reserved.
1527
1527
  * Licensed under the MIT License.
@@ -1542,7 +1542,7 @@ exports.AzureCloudInstance = void 0;
1542
1542
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1543
1543
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1544
1544
 
1545
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1545
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1546
1546
 
1547
1547
  /*
1548
1548
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1701,7 +1701,7 @@ var CredentialEntity = /** @class */ (function () {
1701
1701
  return CredentialEntity;
1702
1702
  }());
1703
1703
 
1704
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1704
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1705
1705
 
1706
1706
  /*
1707
1707
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1956,7 +1956,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
1956
1956
  return ClientConfigurationError;
1957
1957
  }(ClientAuthError));
1958
1958
 
1959
- /*! @azure/msal-common v7.6.0 2022-10-10 */
1959
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
1960
1960
 
1961
1961
  /*
1962
1962
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2140,7 +2140,7 @@ var ScopeSet = /** @class */ (function () {
2140
2140
  return ScopeSet;
2141
2141
  }());
2142
2142
 
2143
- /*! @azure/msal-common v7.6.0 2022-10-10 */
2143
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
2144
2144
 
2145
2145
  /*
2146
2146
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2178,7 +2178,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2178
2178
  };
2179
2179
  }
2180
2180
 
2181
- /*! @azure/msal-common v7.6.0 2022-10-10 */
2181
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
2182
2182
  /*
2183
2183
  * Copyright (c) Microsoft Corporation. All rights reserved.
2184
2184
  * Licensed under the MIT License.
@@ -2193,7 +2193,7 @@ var AuthorityType;
2193
2193
  AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
2194
2194
  })(AuthorityType || (AuthorityType = {}));
2195
2195
 
2196
- /*! @azure/msal-common v7.6.0 2022-10-10 */
2196
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
2197
2197
 
2198
2198
  /*
2199
2199
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2432,7 +2432,7 @@ var AccountEntity = /** @class */ (function () {
2432
2432
  return AccountEntity;
2433
2433
  }());
2434
2434
 
2435
- /*! @azure/msal-common v7.6.0 2022-10-10 */
2435
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
2436
2436
 
2437
2437
  /*
2438
2438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2484,7 +2484,7 @@ var AuthToken = /** @class */ (function () {
2484
2484
  return AuthToken;
2485
2485
  }());
2486
2486
 
2487
- /*! @azure/msal-common v7.6.0 2022-10-10 */
2487
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
2488
2488
 
2489
2489
  /*
2490
2490
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3363,7 +3363,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
3363
3363
  return DefaultStorageClass;
3364
3364
  }(CacheManager));
3365
3365
 
3366
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3366
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3367
3367
 
3368
3368
  /*
3369
3369
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3457,7 +3457,7 @@ function buildAuthOptions(authOptions) {
3457
3457
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
3458
3458
  }
3459
3459
 
3460
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3460
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3461
3461
 
3462
3462
  /*
3463
3463
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3477,7 +3477,7 @@ var ServerError = /** @class */ (function (_super) {
3477
3477
  return ServerError;
3478
3478
  }(AuthError));
3479
3479
 
3480
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3480
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3481
3481
 
3482
3482
  /*
3483
3483
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3573,7 +3573,7 @@ var ThrottlingUtils = /** @class */ (function () {
3573
3573
  return ThrottlingUtils;
3574
3574
  }());
3575
3575
 
3576
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3576
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3577
3577
 
3578
3578
  /*
3579
3579
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3622,7 +3622,7 @@ var NetworkManager = /** @class */ (function () {
3622
3622
  return NetworkManager;
3623
3623
  }());
3624
3624
 
3625
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3625
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3626
3626
  /*
3627
3627
  * Copyright (c) Microsoft Corporation. All rights reserved.
3628
3628
  * Licensed under the MIT License.
@@ -3633,7 +3633,7 @@ var CcsCredentialType;
3633
3633
  CcsCredentialType["UPN"] = "UPN";
3634
3634
  })(CcsCredentialType || (CcsCredentialType = {}));
3635
3635
 
3636
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3636
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3637
3637
 
3638
3638
  /*
3639
3639
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3724,7 +3724,7 @@ var BaseClient = /** @class */ (function () {
3724
3724
  return BaseClient;
3725
3725
  }());
3726
3726
 
3727
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3727
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3728
3728
 
3729
3729
  /*
3730
3730
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3810,7 +3810,7 @@ var RequestValidator = /** @class */ (function () {
3810
3810
  return RequestValidator;
3811
3811
  }());
3812
3812
 
3813
- /*! @azure/msal-common v7.6.0 2022-10-10 */
3813
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
3814
3814
 
3815
3815
  /*
3816
3816
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4188,7 +4188,7 @@ var RequestParameterBuilder = /** @class */ (function () {
4188
4188
  return RequestParameterBuilder;
4189
4189
  }());
4190
4190
 
4191
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4191
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4192
4192
 
4193
4193
  /*
4194
4194
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4252,7 +4252,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
4252
4252
  return IdTokenEntity;
4253
4253
  }(CredentialEntity));
4254
4254
 
4255
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4255
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4256
4256
  /*
4257
4257
  * Copyright (c) Microsoft Corporation. All rights reserved.
4258
4258
  * Licensed under the MIT License.
@@ -4302,7 +4302,7 @@ var TimeUtils = /** @class */ (function () {
4302
4302
  return TimeUtils;
4303
4303
  }());
4304
4304
 
4305
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4305
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4306
4306
 
4307
4307
  /*
4308
4308
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4416,7 +4416,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
4416
4416
  return AccessTokenEntity;
4417
4417
  }(CredentialEntity));
4418
4418
 
4419
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4419
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4420
4420
 
4421
4421
  /*
4422
4422
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4483,7 +4483,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
4483
4483
  return RefreshTokenEntity;
4484
4484
  }(CredentialEntity));
4485
4485
 
4486
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4486
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4487
4487
 
4488
4488
  /*
4489
4489
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4558,7 +4558,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
4558
4558
  return InteractionRequiredAuthError;
4559
4559
  }(AuthError));
4560
4560
 
4561
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4561
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4562
4562
  /*
4563
4563
  * Copyright (c) Microsoft Corporation. All rights reserved.
4564
4564
  * Licensed under the MIT License.
@@ -4574,7 +4574,7 @@ var CacheRecord = /** @class */ (function () {
4574
4574
  return CacheRecord;
4575
4575
  }());
4576
4576
 
4577
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4577
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4578
4578
 
4579
4579
  /*
4580
4580
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4645,7 +4645,7 @@ var ProtocolUtils = /** @class */ (function () {
4645
4645
  return ProtocolUtils;
4646
4646
  }());
4647
4647
 
4648
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4648
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4649
4649
 
4650
4650
  /*
4651
4651
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4879,7 +4879,7 @@ var UrlString = /** @class */ (function () {
4879
4879
  return UrlString;
4880
4880
  }());
4881
4881
 
4882
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4882
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4883
4883
 
4884
4884
  /*
4885
4885
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4980,7 +4980,7 @@ var PopTokenGenerator = /** @class */ (function () {
4980
4980
  return PopTokenGenerator;
4981
4981
  }());
4982
4982
 
4983
- /*! @azure/msal-common v7.6.0 2022-10-10 */
4983
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
4984
4984
 
4985
4985
  /*
4986
4986
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5050,7 +5050,7 @@ var AppMetadataEntity = /** @class */ (function () {
5050
5050
  return AppMetadataEntity;
5051
5051
  }());
5052
5052
 
5053
- /*! @azure/msal-common v7.6.0 2022-10-10 */
5053
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
5054
5054
  /*
5055
5055
  * Copyright (c) Microsoft Corporation. All rights reserved.
5056
5056
  * Licensed under the MIT License.
@@ -5086,7 +5086,7 @@ var AppMetadataEntity = /** @class */ (function () {
5086
5086
  return TokenCacheContext;
5087
5087
  }());
5088
5088
 
5089
- /*! @azure/msal-common v7.6.0 2022-10-10 */
5089
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
5090
5090
 
5091
5091
  /*
5092
5092
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5366,7 +5366,7 @@ var ResponseHandler = /** @class */ (function () {
5366
5366
  return ResponseHandler;
5367
5367
  }());
5368
5368
 
5369
- /*! @azure/msal-common v7.6.0 2022-10-10 */
5369
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
5370
5370
 
5371
5371
  /*
5372
5372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5819,7 +5819,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
5819
5819
  return AuthorizationCodeClient;
5820
5820
  }(BaseClient));
5821
5821
 
5822
- /*! @azure/msal-common v7.6.0 2022-10-10 */
5822
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
5823
5823
  /*
5824
5824
  * Copyright (c) Microsoft Corporation. All rights reserved.
5825
5825
  * Licensed under the MIT License.
@@ -5944,7 +5944,7 @@ var PerformanceEventStatus;
5944
5944
  PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
5945
5945
  })(PerformanceEventStatus || (PerformanceEventStatus = {}));
5946
5946
 
5947
- /*! @azure/msal-common v7.6.0 2022-10-10 */
5947
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
5948
5948
 
5949
5949
  /*
5950
5950
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5959,27 +5959,28 @@ var RefreshTokenClient = /** @class */ (function (_super) {
5959
5959
  return _super.call(this, configuration, performanceClient) || this;
5960
5960
  }
5961
5961
  RefreshTokenClient.prototype.acquireToken = function (request) {
5962
- var _a, _b;
5962
+ var _a, _b, _c;
5963
5963
  return __awaiter(this, void 0, void 0, function () {
5964
5964
  var atsMeasurement, reqTimestamp, response, requestId, responseHandler;
5965
5965
  var _this = this;
5966
- return __generator(this, function (_c) {
5967
- switch (_c.label) {
5966
+ return __generator(this, function (_d) {
5967
+ switch (_d.label) {
5968
5968
  case 0:
5969
5969
  atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(exports.PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
5970
5970
  this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
5971
5971
  reqTimestamp = TimeUtils.nowSeconds();
5972
5972
  return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];
5973
5973
  case 1:
5974
- response = _c.sent();
5975
- requestId = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
5974
+ response = _d.sent();
5975
+ atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
5976
+ refreshTokenSize: ((_b = response.body.refresh_token) === null || _b === void 0 ? void 0 : _b.length) || 0
5977
+ });
5978
+ requestId = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_REQUEST_ID];
5976
5979
  responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
5977
5980
  responseHandler.validateTokenResponse(response.body);
5978
5981
  return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {
5979
- var _a;
5980
5982
  atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
5981
- success: true,
5982
- refreshTokenSize: ((_a = response.body.refresh_token) === null || _a === void 0 ? void 0 : _a.length) || 0
5983
+ success: true
5983
5984
  });
5984
5985
  return result;
5985
5986
  })
@@ -5988,8 +5989,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
5988
5989
  atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
5989
5990
  errorCode: error.errorCode,
5990
5991
  subErrorCode: error.subError,
5991
- success: false,
5992
- refreshTokenSize: undefined
5992
+ success: false
5993
5993
  });
5994
5994
  throw error;
5995
5995
  })];
@@ -6209,7 +6209,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
6209
6209
  return RefreshTokenClient;
6210
6210
  }(BaseClient));
6211
6211
 
6212
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6212
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6213
6213
 
6214
6214
  /*
6215
6215
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6333,7 +6333,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
6333
6333
  return SilentFlowClient;
6334
6334
  }(BaseClient));
6335
6335
 
6336
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6336
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6337
6337
  /*
6338
6338
  * Copyright (c) Microsoft Corporation. All rights reserved.
6339
6339
  * Licensed under the MIT License.
@@ -6345,7 +6345,7 @@ function isOpenIdConfigResponse(response) {
6345
6345
  response.hasOwnProperty("jwks_uri"));
6346
6346
  }
6347
6347
 
6348
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6348
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6349
6349
  /*
6350
6350
  * Copyright (c) Microsoft Corporation. All rights reserved.
6351
6351
  * Licensed under the MIT License.
@@ -6354,7 +6354,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
6354
6354
  var EndpointMetadata = rawMetdataJSON.endpointMetadata;
6355
6355
  var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
6356
6356
 
6357
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6357
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6358
6358
  /*
6359
6359
  * Copyright (c) Microsoft Corporation. All rights reserved.
6360
6360
  * Licensed under the MIT License.
@@ -6368,7 +6368,7 @@ exports.ProtocolMode = void 0;
6368
6368
  ProtocolMode["OIDC"] = "OIDC";
6369
6369
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
6370
6370
 
6371
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6371
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6372
6372
 
6373
6373
  /*
6374
6374
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6445,7 +6445,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
6445
6445
  return AuthorityMetadataEntity;
6446
6446
  }());
6447
6447
 
6448
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6448
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6449
6449
  /*
6450
6450
  * Copyright (c) Microsoft Corporation. All rights reserved.
6451
6451
  * Licensed under the MIT License.
@@ -6455,7 +6455,7 @@ function isCloudInstanceDiscoveryResponse(response) {
6455
6455
  response.hasOwnProperty("metadata"));
6456
6456
  }
6457
6457
 
6458
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6458
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6459
6459
 
6460
6460
  /*
6461
6461
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6577,7 +6577,7 @@ var RegionDiscovery = /** @class */ (function () {
6577
6577
  return RegionDiscovery;
6578
6578
  }());
6579
6579
 
6580
- /*! @azure/msal-common v7.6.0 2022-10-10 */
6580
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
6581
6581
 
6582
6582
  /*
6583
6583
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7249,7 +7249,7 @@ var Authority = /** @class */ (function () {
7249
7249
  return Authority;
7250
7250
  }());
7251
7251
 
7252
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7252
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7253
7253
 
7254
7254
  /*
7255
7255
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7310,7 +7310,7 @@ var AuthorityFactory = /** @class */ (function () {
7310
7310
  return AuthorityFactory;
7311
7311
  }());
7312
7312
 
7313
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7313
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7314
7314
 
7315
7315
  /*
7316
7316
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7341,7 +7341,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
7341
7341
  return ServerTelemetryEntity;
7342
7342
  }());
7343
7343
 
7344
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7344
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7345
7345
 
7346
7346
  /*
7347
7347
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7369,7 +7369,7 @@ var ThrottlingEntity = /** @class */ (function () {
7369
7369
  return ThrottlingEntity;
7370
7370
  }());
7371
7371
 
7372
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7372
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7373
7373
 
7374
7374
  /*
7375
7375
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7386,7 +7386,7 @@ var StubbedNetworkModule = {
7386
7386
  }
7387
7387
  };
7388
7388
 
7389
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7389
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7390
7390
 
7391
7391
  /*
7392
7392
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7431,7 +7431,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
7431
7431
  return JoseHeaderError;
7432
7432
  }(AuthError));
7433
7433
 
7434
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7434
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7435
7435
 
7436
7436
  /*
7437
7437
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7471,7 +7471,7 @@ var JoseHeader = /** @class */ (function () {
7471
7471
  return JoseHeader;
7472
7472
  }());
7473
7473
 
7474
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7474
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7475
7475
 
7476
7476
  /*
7477
7477
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7530,7 +7530,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
7530
7530
  return AuthenticationHeaderParser;
7531
7531
  }());
7532
7532
 
7533
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7533
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7534
7534
 
7535
7535
  /*
7536
7536
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7692,7 +7692,7 @@ var ServerTelemetryManager = /** @class */ (function () {
7692
7692
  return ServerTelemetryManager;
7693
7693
  }());
7694
7694
 
7695
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7695
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7696
7696
 
7697
7697
  /*
7698
7698
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7719,6 +7719,7 @@ var PerformanceClient = /** @class */ (function () {
7719
7719
  this.logger = logger;
7720
7720
  this.callbacks = new Map();
7721
7721
  this.eventsByCorrelationId = new Map();
7722
+ this.staticFieldsByCorrelationId = new Map();
7722
7723
  this.measurementsById = new Map();
7723
7724
  }
7724
7725
  /**
@@ -7745,8 +7746,6 @@ var PerformanceClient = /** @class */ (function () {
7745
7746
  authority: this.authority,
7746
7747
  libraryName: this.libraryName,
7747
7748
  libraryVersion: this.libraryVersion,
7748
- appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
7749
- appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
7750
7749
  clientId: this.clientId,
7751
7750
  name: measureName,
7752
7751
  startTimeMs: Date.now(),
@@ -7754,6 +7753,11 @@ var PerformanceClient = /** @class */ (function () {
7754
7753
  };
7755
7754
  // Store in progress events so they can be discarded if not ended properly
7756
7755
  this.cacheEventByCorrelationId(inProgressEvent);
7756
+ var staticFields = {
7757
+ appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
7758
+ appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
7759
+ };
7760
+ this.addStaticFields(staticFields, eventCorrelationId);
7757
7761
  this.cacheMeasurement(inProgressEvent, performanceMeasurement);
7758
7762
  // Return the event and functions the caller can use to properly end/flush the measurement
7759
7763
  return {
@@ -7771,6 +7775,9 @@ var PerformanceClient = /** @class */ (function () {
7771
7775
  discardMeasurement: function () {
7772
7776
  return _this.discardMeasurements(inProgressEvent.correlationId);
7773
7777
  },
7778
+ addStaticFields: function (fields) {
7779
+ return _this.addStaticFields(fields, inProgressEvent.correlationId);
7780
+ },
7774
7781
  measurement: performanceMeasurement,
7775
7782
  event: inProgressEvent
7776
7783
  };
@@ -7806,6 +7813,22 @@ var PerformanceClient = /** @class */ (function () {
7806
7813
  }
7807
7814
  return null;
7808
7815
  };
7816
+ /**
7817
+ * Saves extra information to be emitted when the measurements are flushed
7818
+ * @param fields
7819
+ * @param correlationId
7820
+ */
7821
+ PerformanceClient.prototype.addStaticFields = function (fields, correlationId) {
7822
+ var existingStaticFields = this.staticFieldsByCorrelationId.get(correlationId);
7823
+ if (existingStaticFields) {
7824
+ this.logger.trace("PerformanceClient: Updating static fields");
7825
+ this.staticFieldsByCorrelationId.set(correlationId, __assign(__assign({}, existingStaticFields), fields));
7826
+ }
7827
+ else {
7828
+ this.logger.trace("PerformanceClient: Adding static fields");
7829
+ this.staticFieldsByCorrelationId.set(correlationId, fields);
7830
+ }
7831
+ };
7809
7832
  /**
7810
7833
  * Upserts event into event cache.
7811
7834
  * First key is the correlation id, second key is the event id.
@@ -7895,19 +7918,12 @@ var PerformanceClient = /** @class */ (function () {
7895
7918
  else {
7896
7919
  _this.logger.verbose("PerformanceClient: Submeasurement for " + measureName + " already exists for " + current.name + ", ignoring", correlationId);
7897
7920
  }
7898
- if (current.accessTokenSize) {
7899
- previous.accessTokenSize = current.accessTokenSize;
7900
- }
7901
- if (current.idTokenSize) {
7902
- previous.idTokenSize = current.idTokenSize;
7903
- }
7904
- if (current.refreshTokenSize) {
7905
- previous.refreshTokenSize = current.refreshTokenSize;
7906
- }
7907
7921
  }
7908
7922
  return previous;
7909
7923
  }, topLevelEvent);
7910
- this.emitEvents([eventToEmit], eventToEmit.correlationId);
7924
+ var staticFields = this.staticFieldsByCorrelationId.get(correlationId);
7925
+ var finalEvent = __assign(__assign({}, eventToEmit), staticFields);
7926
+ this.emitEvents([finalEvent], eventToEmit.correlationId);
7911
7927
  }
7912
7928
  else {
7913
7929
  this.logger.verbose("PerformanceClient: No completed top-level measurements found for " + measureName, correlationId);
@@ -7971,7 +7987,7 @@ var PerformanceClient = /** @class */ (function () {
7971
7987
  return PerformanceClient;
7972
7988
  }());
7973
7989
 
7974
- /*! @azure/msal-common v7.6.0 2022-10-10 */
7990
+ /*! @azure/msal-common v8.0.0 2022-11-07 */
7975
7991
 
7976
7992
  /*
7977
7993
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9846,7 +9862,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
9846
9862
 
9847
9863
  /* eslint-disable header/header */
9848
9864
  var name = "@azure/msal-browser";
9849
- var version = "2.30.0";
9865
+ var version = "2.31.0";
9850
9866
 
9851
9867
  /*
9852
9868
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11227,7 +11243,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11227
11243
  result = _a.sent();
11228
11244
  nativeATMeasurement.endMeasurement({
11229
11245
  success: true,
11230
- isNativeBroker: true,
11246
+ isNativeBroker: false,
11231
11247
  fromCache: true
11232
11248
  });
11233
11249
  return [2 /*return*/, result];
@@ -11369,7 +11385,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11369
11385
  */
11370
11386
  NativeInteractionClient.prototype.handleRedirectPromise = function () {
11371
11387
  return __awaiter$1(this, void 0, void 0, function () {
11372
- var cachedRequest, messageBody, reqTimestamp, response, result, e_4;
11388
+ var cachedRequest, prompt, request, messageBody, reqTimestamp, response, result, e_4;
11373
11389
  return __generator$1(this, function (_a) {
11374
11390
  switch (_a.label) {
11375
11391
  case 0:
@@ -11383,10 +11399,14 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11383
11399
  this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
11384
11400
  return [2 /*return*/, null];
11385
11401
  }
11402
+ prompt = cachedRequest.prompt, request = __rest(cachedRequest, ["prompt"]);
11403
+ if (prompt) {
11404
+ this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window.");
11405
+ }
11386
11406
  this.browserStorage.removeItem(this.browserStorage.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));
11387
11407
  messageBody = {
11388
11408
  method: NativeExtensionMethod.GetToken,
11389
- request: cachedRequest
11409
+ request: request
11390
11410
  };
11391
11411
  reqTimestamp = TimeUtils.nowSeconds();
11392
11412
  _a.label = 1;
@@ -11397,7 +11417,7 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11397
11417
  case 2:
11398
11418
  response = _a.sent();
11399
11419
  this.validateNativeResponse(response);
11400
- result = this.handleNativeResponse(response, cachedRequest, reqTimestamp);
11420
+ result = this.handleNativeResponse(response, request, reqTimestamp);
11401
11421
  this.browserStorage.setInteractionInProgress(false);
11402
11422
  return [2 /*return*/, result];
11403
11423
  case 3:
@@ -11425,12 +11445,30 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11425
11445
  */
11426
11446
  NativeInteractionClient.prototype.handleNativeResponse = function (response, request, reqTimestamp) {
11427
11447
  return __awaiter$1(this, void 0, void 0, function () {
11428
- var idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, mats, result, idTokenEntity, expiresIn, tokenExpirationSeconds, accessTokenEntity;
11448
+ var mats, idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, result, idTokenEntity, expiresIn, tokenExpirationSeconds, accessTokenEntity;
11429
11449
  var _this = this;
11430
11450
  return __generator$1(this, function (_b) {
11431
11451
  switch (_b.label) {
11432
11452
  case 0:
11433
11453
  this.logger.trace("NativeInteractionClient - handleNativeResponse called.");
11454
+ mats = this.getMATSFromResponse(response);
11455
+ this.performanceClient.addStaticFields({
11456
+ extensionId: this.nativeMessageHandler.getExtensionId(),
11457
+ extensionVersion: this.nativeMessageHandler.getExtensionVersion(),
11458
+ matsBrokerVersion: mats ? mats.broker_version : undefined,
11459
+ matsAccountJoinOnStart: mats ? mats.account_join_on_start : undefined,
11460
+ matsAccountJoinOnEnd: mats ? mats.account_join_on_end : undefined,
11461
+ matsDeviceJoin: mats ? mats.device_join : undefined,
11462
+ matsPromptBehavior: mats ? mats.prompt_behavior : undefined,
11463
+ matsApiErrorCode: mats ? mats.api_error_code : undefined,
11464
+ matsUiVisible: mats ? mats.ui_visible : undefined,
11465
+ matsSilentCode: mats ? mats.silent_code : undefined,
11466
+ matsSilentBiSubCode: mats ? mats.silent_bi_sub_code : undefined,
11467
+ matsSilentMessage: mats ? mats.silent_message : undefined,
11468
+ matsSilentStatus: mats ? mats.silent_status : undefined,
11469
+ matsHttpStatus: mats ? mats.http_status : undefined,
11470
+ matsHttpEventCount: mats ? mats.http_event_count : undefined
11471
+ }, this.correlationId);
11434
11472
  if (response.account.id !== request.accountId) {
11435
11473
  // User switch in native broker prompt is not supported. All users must first sign in through web flow to ensure server state is in sync
11436
11474
  throw NativeAuthError.createUserSwitchError();
@@ -11486,7 +11524,6 @@ var NativeInteractionClient = /** @class */ (function (_super) {
11486
11524
  }
11487
11525
  _b.label = 5;
11488
11526
  case 5:
11489
- mats = this.getMATSFromResponse(response);
11490
11527
  result = {
11491
11528
  authority: authority.canonicalAuthority,
11492
11529
  uniqueId: uid,
@@ -11818,6 +11855,7 @@ var NativeMessageHandler = /** @class */ (function () {
11818
11855
  clearTimeout(this.timeoutId); // Clear setTimeout
11819
11856
  window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
11820
11857
  this.extensionId = request.extensionId;
11858
+ this.extensionVersion = request.body.version;
11821
11859
  this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: " + this.extensionId);
11822
11860
  handshakeResolver.resolve();
11823
11861
  this.handshakeResolvers.delete(request.responseId);
@@ -11836,6 +11874,20 @@ var NativeMessageHandler = /** @class */ (function () {
11836
11874
  }
11837
11875
  }
11838
11876
  };
11877
+ /**
11878
+ * Returns the Id for the browser extension this handler is communicating with
11879
+ * @returns
11880
+ */
11881
+ NativeMessageHandler.prototype.getExtensionId = function () {
11882
+ return this.extensionId;
11883
+ };
11884
+ /**
11885
+ * Returns the version for the browser extension this handler is communicating with
11886
+ * @returns
11887
+ */
11888
+ NativeMessageHandler.prototype.getExtensionVersion = function () {
11889
+ return this.extensionVersion;
11890
+ };
11839
11891
  /**
11840
11892
  * Returns boolean indicating whether or not the request should attempt to use native broker
11841
11893
  * @param logger
@@ -15529,8 +15581,6 @@ var ClientApplication = /** @class */ (function () {
15529
15581
  atPopupMeasurement.endMeasurement({
15530
15582
  success: true,
15531
15583
  isNativeBroker: true,
15532
- accessTokenSize: response.accessToken.length,
15533
- idTokenSize: response.idToken.length,
15534
15584
  requestId: response.requestId
15535
15585
  });
15536
15586
  atPopupMeasurement.flushMeasurement();
@@ -15565,10 +15615,12 @@ var ClientApplication = /** @class */ (function () {
15565
15615
  else {
15566
15616
  _this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
15567
15617
  }
15618
+ atPopupMeasurement.addStaticFields({
15619
+ accessTokenSize: result.accessToken.length,
15620
+ idTokenSize: result.idToken.length
15621
+ });
15568
15622
  atPopupMeasurement.endMeasurement({
15569
15623
  success: true,
15570
- accessTokenSize: result.accessToken.length,
15571
- idTokenSize: result.idToken.length,
15572
15624
  requestId: result.requestId
15573
15625
  });
15574
15626
  atPopupMeasurement.flushMeasurement();
@@ -15637,11 +15689,13 @@ var ClientApplication = /** @class */ (function () {
15637
15689
  }
15638
15690
  return [2 /*return*/, result.then(function (response) {
15639
15691
  _this.eventHandler.emitEvent(exports.EventType.SSO_SILENT_SUCCESS, exports.InteractionType.Silent, response);
15692
+ ssoSilentMeasurement.addStaticFields({
15693
+ accessTokenSize: response.accessToken.length,
15694
+ idTokenSize: response.idToken.length
15695
+ });
15640
15696
  ssoSilentMeasurement.endMeasurement({
15641
15697
  success: true,
15642
15698
  isNativeBroker: response.fromNativeBroker,
15643
- accessTokenSize: response.accessToken.length,
15644
- idTokenSize: response.idToken.length,
15645
15699
  requestId: response.requestId
15646
15700
  });
15647
15701
  ssoSilentMeasurement.flushMeasurement();
@@ -15689,10 +15743,12 @@ var ClientApplication = /** @class */ (function () {
15689
15743
  .then(function (result) {
15690
15744
  _this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_BY_CODE_SUCCESS, exports.InteractionType.Silent, result);
15691
15745
  _this.hybridAuthCodeResponses.delete(hybridAuthCode_1);
15746
+ atbcMeasurement.addStaticFields({
15747
+ accessTokenSize: result.accessToken.length,
15748
+ idTokenSize: result.idToken.length
15749
+ });
15692
15750
  atbcMeasurement.endMeasurement({
15693
15751
  success: true,
15694
- accessTokenSize: result.accessToken.length,
15695
- idTokenSize: result.idToken.length,
15696
15752
  isNativeBroker: result.fromNativeBroker,
15697
15753
  requestId: result.requestId
15698
15754
  });
@@ -16293,6 +16349,9 @@ var PublicClientApplication = /** @class */ (function (_super) {
16293
16349
  return __generator$1(this, function (_a) {
16294
16350
  correlationId = this.getRequestCorrelationId(request);
16295
16351
  atsMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.AcquireTokenSilent, correlationId);
16352
+ atsMeasurement.addStaticFields({
16353
+ cacheLookupPolicy: request.cacheLookupPolicy
16354
+ });
16296
16355
  this.preflightBrowserEnvironmentCheck(exports.InteractionType.Silent);
16297
16356
  this.logger.verbose("acquireTokenSilent called", correlationId);
16298
16357
  account = request.account || this.getActiveAccount();
@@ -16318,13 +16377,14 @@ var PublicClientApplication = /** @class */ (function (_super) {
16318
16377
  response = this.acquireTokenSilentAsync(__assign$1(__assign$1({}, request), { correlationId: correlationId }), account)
16319
16378
  .then(function (result) {
16320
16379
  _this.activeSilentTokenRequests.delete(silentRequestKey);
16380
+ atsMeasurement.addStaticFields({
16381
+ accessTokenSize: result.accessToken.length,
16382
+ idTokenSize: result.idToken.length
16383
+ });
16321
16384
  atsMeasurement.endMeasurement({
16322
16385
  success: true,
16323
16386
  fromCache: result.fromCache,
16324
- accessTokenSize: result.accessToken.length,
16325
- idTokenSize: result.idToken.length,
16326
16387
  isNativeBroker: result.fromNativeBroker,
16327
- cacheLookupPolicy: request.cacheLookupPolicy,
16328
16388
  requestId: result.requestId
16329
16389
  });
16330
16390
  atsMeasurement.flushMeasurement();
@@ -16425,8 +16485,6 @@ var PublicClientApplication = /** @class */ (function (_super) {
16425
16485
  astsAsyncMeasurement.endMeasurement({
16426
16486
  success: true,
16427
16487
  fromCache: response.fromCache,
16428
- accessTokenSize: response.accessToken.length,
16429
- idTokenSize: response.idToken.length,
16430
16488
  isNativeBroker: response.fromNativeBroker,
16431
16489
  requestId: response.requestId
16432
16490
  });