@azure/msal-browser 2.22.0 → 2.22.1

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 (61) 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.js +1 -1
  8. package/dist/cache/BrowserStorage.js +1 -1
  9. package/dist/cache/DatabaseStorage.js +1 -1
  10. package/dist/cache/MemoryStorage.js +1 -1
  11. package/dist/cache/TokenCache.js +1 -1
  12. package/dist/config/Configuration.js +1 -1
  13. package/dist/crypto/BrowserCrypto.js +1 -1
  14. package/dist/crypto/CryptoOps.js +1 -1
  15. package/dist/crypto/GuidGenerator.js +1 -1
  16. package/dist/crypto/PkceGenerator.js +1 -1
  17. package/dist/crypto/SignedHttpRequest.js +1 -1
  18. package/dist/encode/Base64Decode.js +1 -1
  19. package/dist/encode/Base64Encode.js +1 -1
  20. package/dist/error/BrowserAuthError.js +1 -1
  21. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  22. package/dist/event/EventHandler.js +1 -1
  23. package/dist/event/EventMessage.js +1 -1
  24. package/dist/event/EventType.js +1 -1
  25. package/dist/index.cjs.js +75 -65
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/interaction_client/BaseInteractionClient.js +11 -12
  29. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  30. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  31. package/dist/interaction_client/PopupClient.js +1 -1
  32. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  33. package/dist/interaction_client/RedirectClient.js +13 -2
  34. package/dist/interaction_client/RedirectClient.js.map +1 -1
  35. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  36. package/dist/interaction_client/SilentCacheClient.js +1 -1
  37. package/dist/interaction_client/SilentIframeClient.js +1 -1
  38. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  39. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  40. package/dist/interaction_handler/InteractionHandler.js +1 -1
  41. package/dist/interaction_handler/PopupHandler.js +1 -1
  42. package/dist/interaction_handler/RedirectHandler.js +1 -1
  43. package/dist/interaction_handler/SilentHandler.js +1 -1
  44. package/dist/navigation/NavigationClient.js +1 -1
  45. package/dist/network/FetchClient.js +1 -1
  46. package/dist/network/XhrClient.js +1 -1
  47. package/dist/packageMetadata.d.ts +1 -1
  48. package/dist/packageMetadata.js +2 -2
  49. package/dist/packageMetadata.js.map +1 -1
  50. package/dist/utils/BrowserConstants.js +1 -1
  51. package/dist/utils/BrowserProtocolUtils.js +1 -1
  52. package/dist/utils/BrowserStringUtils.js +1 -1
  53. package/dist/utils/BrowserUtils.js +1 -1
  54. package/dist/utils/MathUtils.js +1 -1
  55. package/dist/utils/PopupUtils.js +1 -1
  56. package/lib/msal-browser.js +75 -65
  57. package/lib/msal-browser.js.map +1 -1
  58. package/lib/msal-browser.min.js +24 -24
  59. package/package.json +1 -1
  60. package/CHANGELOG.json +0 -1758
  61. package/CHANGELOG.md +0 -553
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.22.0 2022-02-08 */
1
+ /*! @azure/msal-browser v2.22.1 2022-03-07 */
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 v6.1.0 2022-02-08 */
110
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
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 v6.1.0 2022-02-08 */
197
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
198
198
 
199
199
  /*
200
200
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -558,7 +558,7 @@
558
558
  CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4";
559
559
  })(CacheOutcome || (CacheOutcome = {}));
560
560
 
561
- /*! @azure/msal-common v6.1.0 2022-02-08 */
561
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
562
562
 
563
563
  /*
564
564
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -602,7 +602,7 @@
602
602
  return AuthError;
603
603
  }(Error));
604
604
 
605
- /*! @azure/msal-common v6.1.0 2022-02-08 */
605
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
606
606
 
607
607
  /*
608
608
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -677,7 +677,7 @@
677
677
  }
678
678
  };
679
679
 
680
- /*! @azure/msal-common v6.1.0 2022-02-08 */
680
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
681
681
 
682
682
  /*
683
683
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1139,7 +1139,7 @@
1139
1139
  return ClientAuthError;
1140
1140
  }(AuthError));
1141
1141
 
1142
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1142
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1143
1143
 
1144
1144
  /*
1145
1145
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1264,7 +1264,7 @@
1264
1264
  return StringUtils;
1265
1265
  }());
1266
1266
 
1267
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1267
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1268
1268
 
1269
1269
  /*
1270
1270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1444,12 +1444,12 @@
1444
1444
  return Logger;
1445
1445
  }());
1446
1446
 
1447
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1447
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1448
1448
  /* eslint-disable header/header */
1449
1449
  var name$1 = "@azure/msal-common";
1450
1450
  var version$1 = "6.1.0";
1451
1451
 
1452
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1452
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1453
1453
  /*
1454
1454
  * Copyright (c) Microsoft Corporation. All rights reserved.
1455
1455
  * Licensed under the MIT License.
@@ -1468,7 +1468,7 @@
1468
1468
  AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
1469
1469
  })(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
1470
1470
 
1471
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1471
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1472
1472
 
1473
1473
  /*
1474
1474
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1627,7 +1627,7 @@
1627
1627
  return CredentialEntity;
1628
1628
  }());
1629
1629
 
1630
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1630
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1631
1631
 
1632
1632
  /*
1633
1633
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1882,7 +1882,7 @@
1882
1882
  return ClientConfigurationError;
1883
1883
  }(ClientAuthError));
1884
1884
 
1885
- /*! @azure/msal-common v6.1.0 2022-02-08 */
1885
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
1886
1886
 
1887
1887
  /*
1888
1888
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2066,7 +2066,7 @@
2066
2066
  return ScopeSet;
2067
2067
  }());
2068
2068
 
2069
- /*! @azure/msal-common v6.1.0 2022-02-08 */
2069
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
2070
2070
 
2071
2071
  /*
2072
2072
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2104,7 +2104,7 @@
2104
2104
  };
2105
2105
  }
2106
2106
 
2107
- /*! @azure/msal-common v6.1.0 2022-02-08 */
2107
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
2108
2108
  /*
2109
2109
  * Copyright (c) Microsoft Corporation. All rights reserved.
2110
2110
  * Licensed under the MIT License.
@@ -2118,7 +2118,7 @@
2118
2118
  AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
2119
2119
  })(AuthorityType || (AuthorityType = {}));
2120
2120
 
2121
- /*! @azure/msal-common v6.1.0 2022-02-08 */
2121
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
2122
2122
 
2123
2123
  /*
2124
2124
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2352,7 +2352,7 @@
2352
2352
  return AccountEntity;
2353
2353
  }());
2354
2354
 
2355
- /*! @azure/msal-common v6.1.0 2022-02-08 */
2355
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
2356
2356
 
2357
2357
  /*
2358
2358
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2390,7 +2390,7 @@
2390
2390
  return AuthToken;
2391
2391
  }());
2392
2392
 
2393
- /*! @azure/msal-common v6.1.0 2022-02-08 */
2393
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
2394
2394
 
2395
2395
  /*
2396
2396
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3232,7 +3232,7 @@
3232
3232
  return DefaultStorageClass;
3233
3233
  }(CacheManager));
3234
3234
 
3235
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3235
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3236
3236
 
3237
3237
  /*
3238
3238
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3319,7 +3319,7 @@
3319
3319
  return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS }, authOptions);
3320
3320
  }
3321
3321
 
3322
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3322
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3323
3323
 
3324
3324
  /*
3325
3325
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3339,7 +3339,7 @@
3339
3339
  return ServerError;
3340
3340
  }(AuthError));
3341
3341
 
3342
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3342
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3343
3343
 
3344
3344
  /*
3345
3345
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3435,7 +3435,7 @@
3435
3435
  return ThrottlingUtils;
3436
3436
  }());
3437
3437
 
3438
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3438
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3439
3439
 
3440
3440
  /*
3441
3441
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3484,7 +3484,7 @@
3484
3484
  return NetworkManager;
3485
3485
  }());
3486
3486
 
3487
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3487
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3488
3488
  /*
3489
3489
  * Copyright (c) Microsoft Corporation. All rights reserved.
3490
3490
  * Licensed under the MIT License.
@@ -3495,7 +3495,7 @@
3495
3495
  CcsCredentialType["UPN"] = "UPN";
3496
3496
  })(CcsCredentialType || (CcsCredentialType = {}));
3497
3497
 
3498
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3498
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3499
3499
 
3500
3500
  /*
3501
3501
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3584,7 +3584,7 @@
3584
3584
  return BaseClient;
3585
3585
  }());
3586
3586
 
3587
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3587
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3588
3588
 
3589
3589
  /*
3590
3590
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3670,7 +3670,7 @@
3670
3670
  return RequestValidator;
3671
3671
  }());
3672
3672
 
3673
- /*! @azure/msal-common v6.1.0 2022-02-08 */
3673
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
3674
3674
 
3675
3675
  /*
3676
3676
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4016,7 +4016,7 @@
4016
4016
  return RequestParameterBuilder;
4017
4017
  }());
4018
4018
 
4019
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4019
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4020
4020
 
4021
4021
  /*
4022
4022
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4081,7 +4081,7 @@
4081
4081
  return IdTokenEntity;
4082
4082
  }(CredentialEntity));
4083
4083
 
4084
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4084
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4085
4085
  /*
4086
4086
  * Copyright (c) Microsoft Corporation. All rights reserved.
4087
4087
  * Licensed under the MIT License.
@@ -4131,7 +4131,7 @@
4131
4131
  return TimeUtils;
4132
4132
  }());
4133
4133
 
4134
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4134
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4135
4135
 
4136
4136
  /*
4137
4137
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4245,7 +4245,7 @@
4245
4245
  return AccessTokenEntity;
4246
4246
  }(CredentialEntity));
4247
4247
 
4248
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4248
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4249
4249
 
4250
4250
  /*
4251
4251
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4312,7 +4312,7 @@
4312
4312
  return RefreshTokenEntity;
4313
4313
  }(CredentialEntity));
4314
4314
 
4315
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4315
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4316
4316
 
4317
4317
  /*
4318
4318
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4376,7 +4376,7 @@
4376
4376
  return InteractionRequiredAuthError;
4377
4377
  }(AuthError));
4378
4378
 
4379
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4379
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4380
4380
  /*
4381
4381
  * Copyright (c) Microsoft Corporation. All rights reserved.
4382
4382
  * Licensed under the MIT License.
@@ -4392,7 +4392,7 @@
4392
4392
  return CacheRecord;
4393
4393
  }());
4394
4394
 
4395
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4395
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4396
4396
 
4397
4397
  /*
4398
4398
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4463,7 +4463,7 @@
4463
4463
  return ProtocolUtils;
4464
4464
  }());
4465
4465
 
4466
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4466
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4467
4467
 
4468
4468
  /*
4469
4469
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4664,7 +4664,7 @@
4664
4664
  return UrlString;
4665
4665
  }());
4666
4666
 
4667
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4667
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4668
4668
 
4669
4669
  /*
4670
4670
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4739,7 +4739,7 @@
4739
4739
  return PopTokenGenerator;
4740
4740
  }());
4741
4741
 
4742
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4742
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4743
4743
 
4744
4744
  /*
4745
4745
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4809,7 +4809,7 @@
4809
4809
  return AppMetadataEntity;
4810
4810
  }());
4811
4811
 
4812
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4812
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4813
4813
  /*
4814
4814
  * Copyright (c) Microsoft Corporation. All rights reserved.
4815
4815
  * Licensed under the MIT License.
@@ -4845,7 +4845,7 @@
4845
4845
  return TokenCacheContext;
4846
4846
  }());
4847
4847
 
4848
- /*! @azure/msal-common v6.1.0 2022-02-08 */
4848
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
4849
4849
 
4850
4850
  /*
4851
4851
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5110,7 +5110,7 @@
5110
5110
  return ResponseHandler;
5111
5111
  }());
5112
5112
 
5113
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5113
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5114
5114
 
5115
5115
  /*
5116
5116
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5521,7 +5521,7 @@
5521
5521
  return AuthorizationCodeClient;
5522
5522
  }(BaseClient));
5523
5523
 
5524
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5524
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5525
5525
 
5526
5526
  /*
5527
5527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5732,7 +5732,7 @@
5732
5732
  return RefreshTokenClient;
5733
5733
  }(BaseClient));
5734
5734
 
5735
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5735
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5736
5736
 
5737
5737
  /*
5738
5738
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5848,7 +5848,7 @@
5848
5848
  return SilentFlowClient;
5849
5849
  }(BaseClient));
5850
5850
 
5851
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5851
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5852
5852
  /*
5853
5853
  * Copyright (c) Microsoft Corporation. All rights reserved.
5854
5854
  * Licensed under the MIT License.
@@ -5859,7 +5859,7 @@
5859
5859
  response.hasOwnProperty("issuer"));
5860
5860
  }
5861
5861
 
5862
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5862
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5863
5863
  /*
5864
5864
  * Copyright (c) Microsoft Corporation. All rights reserved.
5865
5865
  * Licensed under the MIT License.
@@ -5873,7 +5873,7 @@
5873
5873
  ProtocolMode["OIDC"] = "OIDC";
5874
5874
  })(exports.ProtocolMode || (exports.ProtocolMode = {}));
5875
5875
 
5876
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5876
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5877
5877
 
5878
5878
  /*
5879
5879
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5948,7 +5948,7 @@
5948
5948
  return AuthorityMetadataEntity;
5949
5949
  }());
5950
5950
 
5951
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5951
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5952
5952
  /*
5953
5953
  * Copyright (c) Microsoft Corporation. All rights reserved.
5954
5954
  * Licensed under the MIT License.
@@ -5958,7 +5958,7 @@
5958
5958
  response.hasOwnProperty("metadata"));
5959
5959
  }
5960
5960
 
5961
- /*! @azure/msal-common v6.1.0 2022-02-08 */
5961
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
5962
5962
 
5963
5963
  /*
5964
5964
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6080,7 +6080,7 @@
6080
6080
  return RegionDiscovery;
6081
6081
  }());
6082
6082
 
6083
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6083
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6084
6084
 
6085
6085
  /*
6086
6086
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6670,7 +6670,7 @@
6670
6670
  return Authority;
6671
6671
  }());
6672
6672
 
6673
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6673
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6674
6674
 
6675
6675
  /*
6676
6676
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6731,7 +6731,7 @@
6731
6731
  return AuthorityFactory;
6732
6732
  }());
6733
6733
 
6734
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6734
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6735
6735
 
6736
6736
  /*
6737
6737
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6762,7 +6762,7 @@
6762
6762
  return ServerTelemetryEntity;
6763
6763
  }());
6764
6764
 
6765
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6765
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6766
6766
 
6767
6767
  /*
6768
6768
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6790,7 +6790,7 @@
6790
6790
  return ThrottlingEntity;
6791
6791
  }());
6792
6792
 
6793
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6793
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6794
6794
 
6795
6795
  /*
6796
6796
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6807,7 +6807,7 @@
6807
6807
  }
6808
6808
  };
6809
6809
 
6810
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6810
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6811
6811
 
6812
6812
  /*
6813
6813
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6866,7 +6866,7 @@
6866
6866
  return AuthenticationHeaderParser;
6867
6867
  }());
6868
6868
 
6869
- /*! @azure/msal-common v6.1.0 2022-02-08 */
6869
+ /*! @azure/msal-common v6.1.0 2022-03-07 */
6870
6870
 
6871
6871
  /*
6872
6872
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10490,7 +10490,7 @@
10490
10490
 
10491
10491
  /* eslint-disable header/header */
10492
10492
  var name = "@azure/msal-browser";
10493
- var version = "2.22.0";
10493
+ var version = "2.22.1";
10494
10494
 
10495
10495
  /*
10496
10496
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10708,20 +10708,22 @@
10708
10708
  */
10709
10709
  BaseInteractionClient.prototype.initializeBaseRequest = function (request) {
10710
10710
  return __awaiter$1(this, void 0, void 0, function () {
10711
- var authority, scopes, _a, validatedRequest;
10711
+ var authority, scopes, validatedRequest, _a;
10712
10712
  return __generator$1(this, function (_b) {
10713
10713
  switch (_b.label) {
10714
10714
  case 0:
10715
10715
  this.logger.verbose("Initializing BaseAuthRequest");
10716
10716
  authority = request.authority || this.config.auth.authority;
10717
10717
  scopes = __spread(((request && request.scopes) || []));
10718
+ validatedRequest = __assign$1(__assign$1({}, request), { correlationId: this.correlationId, authority: authority,
10719
+ scopes: scopes });
10718
10720
  // Set authenticationScheme to BEARER if not explicitly set in the request
10719
- if (!request.authenticationScheme) {
10720
- request.authenticationScheme = exports.AuthenticationScheme.BEARER;
10721
+ if (!validatedRequest.authenticationScheme) {
10722
+ validatedRequest.authenticationScheme = exports.AuthenticationScheme.BEARER;
10721
10723
  this.logger.verbose("Authentication Scheme wasn't explicitly set in request, defaulting to \"Bearer\" request");
10722
10724
  }
10723
10725
  else {
10724
- if (request.authenticationScheme === exports.AuthenticationScheme.SSH) {
10726
+ if (validatedRequest.authenticationScheme === exports.AuthenticationScheme.SSH) {
10725
10727
  if (!request.sshJwk) {
10726
10728
  throw ClientConfigurationError.createMissingSshJwkError();
10727
10729
  }
@@ -10729,18 +10731,15 @@
10729
10731
  throw ClientConfigurationError.createMissingSshKidError();
10730
10732
  }
10731
10733
  }
10732
- this.logger.verbose("Authentication Scheme set to \"" + request.authenticationScheme + "\" as configured in Auth request");
10734
+ this.logger.verbose("Authentication Scheme set to \"" + validatedRequest.authenticationScheme + "\" as configured in Auth request");
10733
10735
  }
10734
10736
  if (!(request.claims && !StringUtils.isEmpty(request.claims))) return [3 /*break*/, 2];
10735
- _a = request;
10737
+ _a = validatedRequest;
10736
10738
  return [4 /*yield*/, this.browserCrypto.hashString(request.claims)];
10737
10739
  case 1:
10738
10740
  _a.requestedClaimsHash = _b.sent();
10739
10741
  _b.label = 2;
10740
- case 2:
10741
- validatedRequest = __assign$1(__assign$1({}, request), { correlationId: this.correlationId, authority: authority,
10742
- scopes: scopes });
10743
- return [2 /*return*/, validatedRequest];
10742
+ case 2: return [2 /*return*/, validatedRequest];
10744
10743
  }
10745
10744
  });
10746
10745
  });
@@ -11782,7 +11781,8 @@
11782
11781
  */
11783
11782
  RedirectClient.prototype.acquireToken = function (request) {
11784
11783
  return __awaiter$1(this, void 0, void 0, function () {
11785
- var validRequest, serverTelemetryManager, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1;
11784
+ var validRequest, serverTelemetryManager, handleBackButton, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1;
11785
+ var _this = this;
11786
11786
  return __generator$1(this, function (_a) {
11787
11787
  switch (_a.label) {
11788
11788
  case 0: return [4 /*yield*/, this.initializeAuthorizationRequest(request, exports.InteractionType.Redirect)];
@@ -11790,6 +11790,13 @@
11790
11790
  validRequest = _a.sent();
11791
11791
  this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || "", validRequest.account || null);
11792
11792
  serverTelemetryManager = this.initializeServerTelemetryManager(exports.ApiId.acquireTokenRedirect);
11793
+ handleBackButton = function (event) {
11794
+ // Clear temporary cache if the back button is clicked during the redirect flow.
11795
+ if (event.persisted) {
11796
+ _this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache.");
11797
+ _this.browserStorage.cleanRequestByState(validRequest.state);
11798
+ }
11799
+ };
11793
11800
  _a.label = 2;
11794
11801
  case 2:
11795
11802
  _a.trys.push([2, 7, , 8]);
@@ -11806,6 +11813,8 @@
11806
11813
  navigateUrl = _a.sent();
11807
11814
  redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
11808
11815
  this.logger.verbosePii("Redirect start page: " + redirectStartPage);
11816
+ // Clear temporary cache if the back button is clicked during the redirect flow.
11817
+ window.addEventListener("pageshow", handleBackButton);
11809
11818
  return [4 /*yield*/, interactionHandler.initiateAuthRequest(navigateUrl, {
11810
11819
  navigationClient: this.navigationClient,
11811
11820
  redirectTimeout: this.config.system.redirectNavigationTimeout,
@@ -11820,6 +11829,7 @@
11820
11829
  if (e_1 instanceof AuthError) {
11821
11830
  e_1.setCorrelationId(this.correlationId);
11822
11831
  }
11832
+ window.removeEventListener("pageshow", handleBackButton);
11823
11833
  serverTelemetryManager.cacheFailedRequest(e_1);
11824
11834
  this.browserStorage.cleanRequestByState(validRequest.state);
11825
11835
  throw e_1;