@equinor/fusion-framework-vite-plugin-spa 5.1.0 → 5.2.2

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.
@@ -11058,13 +11058,14 @@ const ZodIssueCode = {
11058
11058
  custom: "custom",
11059
11059
  };
11060
11060
 
11061
- var isMergeableObject;
11062
- var hasRequiredIsMergeableObject;
11061
+ var cjs;
11062
+ var hasRequiredCjs;
11063
11063
 
11064
- function requireIsMergeableObject () {
11065
- if (hasRequiredIsMergeableObject) return isMergeableObject;
11066
- hasRequiredIsMergeableObject = 1;
11067
- isMergeableObject = function isMergeableObject(value) {
11064
+ function requireCjs () {
11065
+ if (hasRequiredCjs) return cjs;
11066
+ hasRequiredCjs = 1;
11067
+
11068
+ var isMergeableObject = function isMergeableObject(value) {
11068
11069
  return isNonNullObject(value)
11069
11070
  && !isSpecial(value)
11070
11071
  };
@@ -11088,16 +11089,6 @@ function requireIsMergeableObject () {
11088
11089
  function isReactElement(value) {
11089
11090
  return value.$$typeof === REACT_ELEMENT_TYPE
11090
11091
  }
11091
- return isMergeableObject;
11092
- }
11093
-
11094
- var deepmerge_1;
11095
- var hasRequiredDeepmerge;
11096
-
11097
- function requireDeepmerge () {
11098
- if (hasRequiredDeepmerge) return deepmerge_1;
11099
- hasRequiredDeepmerge = 1;
11100
- var defaultIsMergeableObject = requireIsMergeableObject();
11101
11092
 
11102
11093
  function emptyTarget(val) {
11103
11094
  return Array.isArray(val) ? [] : {}
@@ -11174,7 +11165,7 @@ function requireDeepmerge () {
11174
11165
  function deepmerge(target, source, options) {
11175
11166
  options = options || {};
11176
11167
  options.arrayMerge = options.arrayMerge || defaultArrayMerge;
11177
- options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject;
11168
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
11178
11169
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
11179
11170
  // implementations can use it. The caller may not replace it.
11180
11171
  options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
@@ -11202,12 +11193,14 @@ function requireDeepmerge () {
11202
11193
  }, {})
11203
11194
  };
11204
11195
 
11205
- deepmerge_1 = deepmerge;
11206
- return deepmerge_1;
11196
+ var deepmerge_1 = deepmerge;
11197
+
11198
+ cjs = deepmerge_1;
11199
+ return cjs;
11207
11200
  }
11208
11201
 
11209
- var deepmergeExports = requireDeepmerge();
11210
- var deepmerge = /*@__PURE__*/getDefaultExportFromCjs(deepmergeExports);
11202
+ var cjsExports = requireCjs();
11203
+ var deepmerge = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
11211
11204
 
11212
11205
  /**
11213
11206
  * Enum representing the severity levels of telemetry items.
@@ -11341,7 +11334,7 @@ const TelemetryCustomEventSchema = TelemetryEventSchema.extend({
11341
11334
  type: literal(TelemetryType.Custom),
11342
11335
  }).passthrough();
11343
11336
 
11344
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11337
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11345
11338
  /*
11346
11339
  * Copyright (c) Microsoft Corporation. All rights reserved.
11347
11340
  * Licensed under the MIT License.
@@ -11395,7 +11388,7 @@ const RESOURCE = "resource";
11395
11388
  const CLI_DATA = "clidata";
11396
11389
  const ATTRIBUTE_TOKENS = "attribute_tokens";
11397
11390
 
11398
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11391
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11399
11392
  /*
11400
11393
  * Copyright (c) Microsoft Corporation. All rights reserved.
11401
11394
  * Licensed under the MIT License.
@@ -11629,7 +11622,7 @@ const JsonWebTokenTypes = {
11629
11622
  // Token renewal offset default in seconds
11630
11623
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
11631
11624
 
11632
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11625
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11633
11626
  /*
11634
11627
  * Copyright (c) Microsoft Corporation. All rights reserved.
11635
11628
  * Licensed under the MIT License.
@@ -11658,7 +11651,7 @@ function createAuthError(code, correlationId, additionalMessage) {
11658
11651
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
11659
11652
  }
11660
11653
 
11661
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11654
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11662
11655
 
11663
11656
  /*
11664
11657
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11681,7 +11674,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
11681
11674
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
11682
11675
  }
11683
11676
 
11684
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11677
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11685
11678
  /*
11686
11679
  * Copyright (c) Microsoft Corporation. All rights reserved.
11687
11680
  * Licensed under the MIT License.
@@ -11719,7 +11712,7 @@ const methodNotImplemented = "method_not_implemented";
11719
11712
  const resourceParameterRequired = "resource_parameter_required";
11720
11713
  const misplacedResourceParam = "misplaced_resource_parameter";
11721
11714
 
11722
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11715
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11723
11716
 
11724
11717
  /*
11725
11718
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11757,7 +11750,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
11757
11750
  };
11758
11751
  }
11759
11752
 
11760
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11753
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11761
11754
 
11762
11755
  /*
11763
11756
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11823,7 +11816,7 @@ function getJWSPayload(authToken, correlationId) {
11823
11816
  return matches[2];
11824
11817
  }
11825
11818
 
11826
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11819
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11827
11820
 
11828
11821
  /*
11829
11822
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11911,7 +11904,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
11911
11904
  return updatedAccountInfo;
11912
11905
  }
11913
11906
 
11914
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11907
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11915
11908
  /*
11916
11909
  * Copyright (c) Microsoft Corporation. All rights reserved.
11917
11910
  * Licensed under the MIT License.
@@ -11925,7 +11918,7 @@ const AuthorityType = {
11925
11918
  Ciam: 3,
11926
11919
  };
11927
11920
 
11928
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11921
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11929
11922
  /*
11930
11923
  * Copyright (c) Microsoft Corporation. All rights reserved.
11931
11924
  * Licensed under the MIT License.
@@ -11947,7 +11940,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
11947
11940
  return null;
11948
11941
  }
11949
11942
 
11950
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11943
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11951
11944
  /*
11952
11945
  * Copyright (c) Microsoft Corporation. All rights reserved.
11953
11946
  * Licensed under the MIT License.
@@ -11971,7 +11964,7 @@ const ProtocolMode = {
11971
11964
  EAR: "EAR",
11972
11965
  };
11973
11966
 
11974
- /*! @azure/msal-common v16.14.1 2026-09-15 */
11967
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
11975
11968
  /**
11976
11969
  * Returns the AccountInfo interface for this account.
11977
11970
  * @internal
@@ -12160,7 +12153,7 @@ function isAccountEntity(entity) {
12160
12153
  entity.hasOwnProperty("authorityType"));
12161
12154
  }
12162
12155
 
12163
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12156
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12164
12157
  /*
12165
12158
  * Copyright (c) Microsoft Corporation. All rights reserved.
12166
12159
  * Licensed under the MIT License.
@@ -12170,7 +12163,7 @@ function isAccountEntity(entity) {
12170
12163
  */
12171
12164
  const unexpectedError = "unexpected_error";
12172
12165
 
12173
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12166
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12174
12167
 
12175
12168
  /*
12176
12169
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12190,7 +12183,7 @@ function createClientConfigurationError(errorCode, correlationId) {
12190
12183
  return new ClientConfigurationError(errorCode, correlationId);
12191
12184
  }
12192
12185
 
12193
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12186
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12194
12187
  /*
12195
12188
  * Copyright (c) Microsoft Corporation. All rights reserved.
12196
12189
  * Licensed under the MIT License.
@@ -12221,7 +12214,7 @@ const invalidDpopHtu = "invalid_dpop_htu";
12221
12214
  const invalidDpopNonce = "invalid_dpop_nonce";
12222
12215
  const dpopMissingResourceContext = "dpop_missing_resource_context";
12223
12216
 
12224
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12217
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12225
12218
  /*
12226
12219
  * Copyright (c) Microsoft Corporation. All rights reserved.
12227
12220
  * Licensed under the MIT License.
@@ -12233,7 +12226,7 @@ function isOpenIdConfigResponse(response) {
12233
12226
  response.hasOwnProperty("jwks_uri"));
12234
12227
  }
12235
12228
 
12236
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12229
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12237
12230
  /*
12238
12231
  * Copyright (c) Microsoft Corporation. All rights reserved.
12239
12232
  * Licensed under the MIT License.
@@ -12313,7 +12306,7 @@ class StringUtils {
12313
12306
  }
12314
12307
  }
12315
12308
 
12316
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12309
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12317
12310
 
12318
12311
  /*
12319
12312
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12471,7 +12464,7 @@ class UrlString {
12471
12464
  }
12472
12465
  }
12473
12466
 
12474
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12467
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12475
12468
 
12476
12469
  /*
12477
12470
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12625,7 +12618,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
12625
12618
  return null;
12626
12619
  }
12627
12620
 
12628
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12621
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12629
12622
  /*
12630
12623
  * Copyright (c) Microsoft Corporation. All rights reserved.
12631
12624
  * Licensed under the MIT License.
@@ -12634,7 +12627,7 @@ const AzureCloudInstance = {
12634
12627
  // AzureCloudInstance is not specified.
12635
12628
  None: "none"};
12636
12629
 
12637
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12630
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12638
12631
  /*
12639
12632
  * Copyright (c) Microsoft Corporation. All rights reserved.
12640
12633
  * Licensed under the MIT License.
@@ -12644,7 +12637,7 @@ function isCloudInstanceDiscoveryResponse(response) {
12644
12637
  response.hasOwnProperty("metadata"));
12645
12638
  }
12646
12639
 
12647
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12640
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12648
12641
  /*
12649
12642
  * Copyright (c) Microsoft Corporation. All rights reserved.
12650
12643
  * Licensed under the MIT License.
@@ -12654,7 +12647,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
12654
12647
  response.hasOwnProperty("error_description"));
12655
12648
  }
12656
12649
 
12657
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12650
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12658
12651
  /*
12659
12652
  * Copyright (c) Microsoft Corporation. All rights reserved.
12660
12653
  * Licensed under the MIT License.
@@ -12725,7 +12718,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
12725
12718
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
12726
12719
  const SetUserData = "setUserData";
12727
12720
 
12728
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12721
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12729
12722
  /*
12730
12723
  * Copyright (c) Microsoft Corporation. All rights reserved.
12731
12724
  * Licensed under the MIT License.
@@ -12818,7 +12811,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
12818
12811
  };
12819
12812
  };
12820
12813
 
12821
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12814
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12822
12815
 
12823
12816
  /*
12824
12817
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -12929,7 +12922,7 @@ RegionDiscovery.IMDS_OPTIONS = {
12929
12922
  },
12930
12923
  };
12931
12924
 
12932
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12925
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12933
12926
  /*
12934
12927
  * Copyright (c) Microsoft Corporation. All rights reserved.
12935
12928
  * Licensed under the MIT License.
@@ -12994,7 +12987,7 @@ function wasClockTurnedBack(cachedAt) {
12994
12987
  return cachedAtSec > nowSeconds();
12995
12988
  }
12996
12989
 
12997
- /*! @azure/msal-common v16.14.1 2026-09-15 */
12990
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
12998
12991
 
12999
12992
  /*
13000
12993
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -13281,7 +13274,7 @@ function serializeAttributeTokens(attributeTokens) {
13281
13274
  return [...attributeTokens].sort().join(" ");
13282
13275
  }
13283
13276
 
13284
- /*! @azure/msal-common v16.14.1 2026-09-15 */
13277
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
13285
13278
 
13286
13279
  /*
13287
13280
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14249,7 +14242,7 @@ function buildStaticAuthorityOptions(authOptions) {
14249
14242
  };
14250
14243
  }
14251
14244
 
14252
- /*! @azure/msal-common v16.14.1 2026-09-15 */
14245
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
14253
14246
 
14254
14247
  /*
14255
14248
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14283,7 +14276,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
14283
14276
  }
14284
14277
  }
14285
14278
 
14286
- /*! @azure/msal-common v16.14.1 2026-09-15 */
14279
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
14287
14280
 
14288
14281
  /*
14289
14282
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14479,7 +14472,7 @@ class ScopeSet {
14479
14472
  }
14480
14473
  }
14481
14474
 
14482
- /*! @azure/msal-common v16.14.1 2026-09-15 */
14475
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
14483
14476
 
14484
14477
  /*
14485
14478
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -14965,7 +14958,7 @@ function addAttributeTokens(parameters, attributeTokens) {
14965
14958
  }
14966
14959
  }
14967
14960
 
14968
- /*! @azure/msal-common v16.14.1 2026-09-15 */
14961
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
14969
14962
 
14970
14963
  /*
14971
14964
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -15087,7 +15080,7 @@ function validateUrl(url, logger, correlationId) {
15087
15080
  }
15088
15081
  }
15089
15082
 
15090
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15083
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15091
15084
 
15092
15085
  /*
15093
15086
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -15135,7 +15128,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
15135
15128
  },
15136
15129
  };
15137
15130
 
15138
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15131
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15139
15132
 
15140
15133
  /*
15141
15134
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -15158,7 +15151,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
15158
15151
  },
15159
15152
  };
15160
15153
 
15161
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15154
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15162
15155
  /*
15163
15156
  * Copyright (c) Microsoft Corporation. All rights reserved.
15164
15157
  * Licensed under the MIT License.
@@ -15433,12 +15426,12 @@ class Logger {
15433
15426
  }
15434
15427
  }
15435
15428
 
15436
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15429
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15437
15430
  /* eslint-disable header/header */
15438
15431
  const name$1 = "@azure/msal-common";
15439
- const version$2 = "16.14.1";
15432
+ const version$2 = "16.14.2";
15440
15433
 
15441
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15434
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15442
15435
  /*
15443
15436
  * Copyright (c) Microsoft Corporation. All rights reserved.
15444
15437
  * Licensed under the MIT License.
@@ -15446,7 +15439,7 @@ const version$2 = "16.14.1";
15446
15439
  const cacheQuotaExceeded = "cache_quota_exceeded";
15447
15440
  const cacheErrorUnknown = "cache_error_unknown";
15448
15441
 
15449
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15442
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15450
15443
 
15451
15444
  /*
15452
15445
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -15484,7 +15477,7 @@ function createCacheError(e) {
15484
15477
  }
15485
15478
  }
15486
15479
 
15487
- /*! @azure/msal-common v16.14.1 2026-09-15 */
15480
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
15488
15481
 
15489
15482
  /*
15490
15483
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16671,7 +16664,7 @@ class DefaultStorageClass extends CacheManager {
16671
16664
  }
16672
16665
  }
16673
16666
 
16674
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16667
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16675
16668
  /*
16676
16669
  * Copyright (c) Microsoft Corporation. All rights reserved.
16677
16670
  * Licensed under the MIT License.
@@ -16685,7 +16678,7 @@ class DefaultStorageClass extends CacheManager {
16685
16678
  const PerformanceEventStatus = {
16686
16679
  InProgress: 1};
16687
16680
 
16688
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16681
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16689
16682
 
16690
16683
  /*
16691
16684
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16743,7 +16736,7 @@ class StubPerformanceClient {
16743
16736
  }
16744
16737
  }
16745
16738
 
16746
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16739
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16747
16740
 
16748
16741
  /*
16749
16742
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16841,7 +16834,7 @@ function isOidcProtocolMode(config) {
16841
16834
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
16842
16835
  }
16843
16836
 
16844
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16837
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16845
16838
  /*
16846
16839
  * Copyright (c) Microsoft Corporation. All rights reserved.
16847
16840
  * Licensed under the MIT License.
@@ -16868,7 +16861,7 @@ function isOidcProtocolMode(config) {
16868
16861
  }
16869
16862
  }
16870
16863
 
16871
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16864
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16872
16865
 
16873
16866
  /*
16874
16867
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16889,7 +16882,7 @@ function createJoseHeaderError(code, correlationId) {
16889
16882
  return new JoseHeaderError(code, correlationId);
16890
16883
  }
16891
16884
 
16892
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16885
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16893
16886
  /*
16894
16887
  * Copyright (c) Microsoft Corporation. All rights reserved.
16895
16888
  * Licensed under the MIT License.
@@ -16914,7 +16907,7 @@ function isPlainObject(value) {
16914
16907
  return Object.getPrototypeOf(value) === proto;
16915
16908
  }
16916
16909
 
16917
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16910
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16918
16911
  /*
16919
16912
  * Copyright (c) Microsoft Corporation. All rights reserved.
16920
16913
  * Licensed under the MIT License.
@@ -16924,7 +16917,7 @@ const missingAlgError = "missing_alg_error";
16924
16917
  const missingJwkError = "missing_jwk_error";
16925
16918
  const invalidJwkError = "invalid_jwk_error";
16926
16919
 
16927
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16920
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16928
16921
 
16929
16922
  /*
16930
16923
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16990,7 +16983,7 @@ class JoseHeader {
16990
16983
  }
16991
16984
  }
16992
16985
 
16993
- /*! @azure/msal-common v16.14.1 2026-09-15 */
16986
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
16994
16987
 
16995
16988
  /*
16996
16989
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17091,7 +17084,7 @@ class PopTokenGenerator {
17091
17084
  }
17092
17085
  }
17093
17086
 
17094
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17087
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17095
17088
 
17096
17089
  /*
17097
17090
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17236,7 +17229,7 @@ class DpopProofGenerator {
17236
17229
  }
17237
17230
  }
17238
17231
 
17239
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17232
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17240
17233
  /*
17241
17234
  * Copyright (c) Microsoft Corporation. All rights reserved.
17242
17235
  * Licensed under the MIT License.
@@ -17287,7 +17280,7 @@ const badToken = "bad_token";
17287
17280
  */
17288
17281
  const interruptedUser = "interrupted_user";
17289
17282
 
17290
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17283
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17291
17284
 
17292
17285
  /*
17293
17286
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17354,7 +17347,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
17354
17347
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
17355
17348
  }
17356
17349
 
17357
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17350
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17358
17351
 
17359
17352
  /*
17360
17353
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17373,7 +17366,7 @@ class ServerError extends AuthError {
17373
17366
  }
17374
17367
  }
17375
17368
 
17376
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17369
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17377
17370
 
17378
17371
  /*
17379
17372
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17444,7 +17437,7 @@ function parseRequestState(base64Decode, state, correlationId) {
17444
17437
  }
17445
17438
  }
17446
17439
 
17447
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17440
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17448
17441
 
17449
17442
  /*
17450
17443
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17872,7 +17865,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
17872
17865
  return baseAccount;
17873
17866
  }
17874
17867
 
17875
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17868
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17876
17869
  /*
17877
17870
  * Copyright (c) Microsoft Corporation. All rights reserved.
17878
17871
  * Licensed under the MIT License.
@@ -17882,7 +17875,7 @@ const CcsCredentialType = {
17882
17875
  UPN: "UPN",
17883
17876
  };
17884
17877
 
17885
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17878
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17886
17879
  /*
17887
17880
  * Copyright (c) Microsoft Corporation. All rights reserved.
17888
17881
  * Licensed under the MIT License.
@@ -17901,7 +17894,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
17901
17894
  }
17902
17895
  }
17903
17896
 
17904
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17897
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17905
17898
 
17906
17899
  /*
17907
17900
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17925,7 +17918,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
17925
17918
  };
17926
17919
  }
17927
17920
 
17928
- /*! @azure/msal-common v16.14.1 2026-09-15 */
17921
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
17929
17922
 
17930
17923
  /*
17931
17924
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18011,7 +18004,7 @@ class ThrottlingUtils {
18011
18004
  }
18012
18005
  }
18013
18006
 
18014
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18007
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18015
18008
 
18016
18009
  /*
18017
18010
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18042,7 +18035,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
18042
18035
  return new NetworkError(error, httpStatus, responseHeaders);
18043
18036
  }
18044
18037
 
18045
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18038
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18046
18039
 
18047
18040
  /*
18048
18041
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18175,7 +18168,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
18175
18168
  return response;
18176
18169
  }
18177
18170
 
18178
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18171
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18179
18172
 
18180
18173
  /*
18181
18174
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18439,7 +18432,7 @@ class AuthorizationCodeClient {
18439
18432
  }
18440
18433
  }
18441
18434
 
18442
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18435
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18443
18436
 
18444
18437
  /*
18445
18438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18666,7 +18659,7 @@ function extractLoginHint(account) {
18666
18659
  return account.loginHint || account.idTokenClaims?.login_hint || null;
18667
18660
  }
18668
18661
 
18669
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18662
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18670
18663
 
18671
18664
  /*
18672
18665
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -18825,6 +18818,7 @@ class RefreshTokenClient {
18825
18818
  addRedirectUri(parameters, request.redirectUri);
18826
18819
  }
18827
18820
  addScopes(parameters, request.scopes, request.correlationId, true, this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);
18821
+ addResource(parameters, request.resource);
18828
18822
  addGrantType(parameters, GrantType.REFRESH_TOKEN_GRANT);
18829
18823
  addClientInfo(parameters);
18830
18824
  addLibraryInfo(parameters, this.config.libraryInfo);
@@ -18900,7 +18894,7 @@ class RefreshTokenClient {
18900
18894
  }
18901
18895
  }
18902
18896
 
18903
- /*! @azure/msal-common v16.14.1 2026-09-15 */
18897
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
18904
18898
 
18905
18899
  /*
18906
18900
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19193,7 +19187,7 @@ class StubServerTelemetryManager extends ServerTelemetryManager {
19193
19187
  clearNativeBrokerErrorCode() { }
19194
19188
  }
19195
19189
 
19196
- /*! @azure/msal-common v16.14.1 2026-09-15 */
19190
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
19197
19191
 
19198
19192
  /*
19199
19193
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19320,7 +19314,7 @@ class SilentFlowClient {
19320
19314
  }
19321
19315
  }
19322
19316
 
19323
- /*! @azure/msal-common v16.14.1 2026-09-15 */
19317
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
19324
19318
 
19325
19319
  /*
19326
19320
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19336,7 +19330,7 @@ const StubbedNetworkModule = {
19336
19330
  },
19337
19331
  };
19338
19332
 
19339
- /*! @azure/msal-common v16.14.1 2026-09-15 */
19333
+ /*! @azure/msal-common v16.14.2 2026-10-02 */
19340
19334
 
19341
19335
  /*
19342
19336
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19369,7 +19363,7 @@ function containsResourceParam(params) {
19369
19363
  return Object.prototype.hasOwnProperty.call(params, "resource");
19370
19364
  }
19371
19365
 
19372
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19366
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19373
19367
  /*
19374
19368
  * Copyright (c) Microsoft Corporation. All rights reserved.
19375
19369
  * Licensed under the MIT License.
@@ -19472,6 +19466,20 @@ const AcquireTokenByCodeAsync = "acquireTokenByCodeAsync";
19472
19466
  const HandleRedirectPromiseMeasurement = "handleRedirectPromise";
19473
19467
  const HandleNativeRedirectPromiseMeasurement = "handleNativeRedirectPromise";
19474
19468
  const NativeMessageHandlerHandshake = "nativeMessageHandlerHandshake";
19469
+ const NativeGenerateAuthResult = "nativeGenerateAuthResult";
19470
+ const PlatformAuthProviderDiscovery = "platformAuthProviderDiscovery";
19471
+ const PlatformAuthDOMCreateProvider = "platformAuthDOMCreateProvider";
19472
+ const PlatformAuthDOMGetSupportedContracts = "platformAuthDOMGetSupportedContracts";
19473
+ const PlatformAuthDOMInitializeRequest = "platformAuthDOMInitializeRequest";
19474
+ const PlatformAuthDOMGetToken = "platformAuthDOMGetToken";
19475
+ const PlatformAuthDOMValidateResponse = "platformAuthDOMValidateResponse";
19476
+ const PlatformAuthExtensionCreateProvider = "platformAuthExtensionCreateProvider";
19477
+ const PlatformAuthExtensionGetToken = "platformAuthExtensionGetToken";
19478
+ const PlatformAuthExtensionValidateResponse = "platformAuthExtensionValidateResponse";
19479
+ const PlatformAuthInteractionClientInitializeRequest = "platformAuthInteractionClientInitializeRequest";
19480
+ const PlatformAuthHandleNativeResponse = "platformAuthHandleNativeResponse";
19481
+ const PlatformAuthCacheAccount = "platformAuthCacheAccount";
19482
+ const PlatformAuthCacheNativeTokens = "platformAuthCacheNativeTokens";
19475
19483
  const RemoveHiddenIframe = "removeHiddenIframe";
19476
19484
  const ImportExistingCache = "importExistingCache";
19477
19485
  /**
@@ -19496,7 +19504,7 @@ const DecryptEarResponse = "decryptEarResponse";
19496
19504
  */
19497
19505
  const WaitForBridgeLateResponse = "waitForBridgeLateResponse";
19498
19506
 
19499
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19507
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19500
19508
 
19501
19509
  /*
19502
19510
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19519,7 +19527,7 @@ function createBrowserAuthError(errorCode, correlationId, subError) {
19519
19527
  return new BrowserAuthError(errorCode, correlationId, subError);
19520
19528
  }
19521
19529
 
19522
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19530
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19523
19531
  /*
19524
19532
  * Copyright (c) Microsoft Corporation. All rights reserved.
19525
19533
  * Licensed under the MIT License.
@@ -19577,7 +19585,7 @@ const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
19577
19585
  const timedOut = "timed_out";
19578
19586
  const emptyResponse = "empty_response";
19579
19587
 
19580
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19588
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19581
19589
 
19582
19590
  /*
19583
19591
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19616,7 +19624,7 @@ function base64DecToArr(base64String) {
19616
19624
  return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
19617
19625
  }
19618
19626
 
19619
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19627
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19620
19628
 
19621
19629
  /*
19622
19630
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -19802,7 +19810,7 @@ const iFrameRenewalPolicies = [
19802
19810
  CacheLookupPolicy.RefreshTokenAndNetwork,
19803
19811
  ];
19804
19812
 
19805
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19813
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19806
19814
  /*
19807
19815
  * Copyright (c) Microsoft Corporation. All rights reserved.
19808
19816
  * Licensed under the MIT License.
@@ -19847,7 +19855,7 @@ function base64EncArr(aBytes) {
19847
19855
  return btoa(binString);
19848
19856
  }
19849
19857
 
19850
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
19858
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
19851
19859
 
19852
19860
  /*
19853
19861
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -20194,7 +20202,7 @@ async function computeJwkThumbprint(publicJwk, correlationId) {
20194
20202
  return hashString(thumbprintJson);
20195
20203
  }
20196
20204
 
20197
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20205
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20198
20206
 
20199
20207
  /*
20200
20208
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -20214,7 +20222,7 @@ function createBrowserConfigurationAuthError(errorCode, correlationId) {
20214
20222
  return new BrowserConfigurationAuthError(errorCode, correlationId, getDefaultErrorMessage(errorCode));
20215
20223
  }
20216
20224
 
20217
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20225
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20218
20226
  /*
20219
20227
  * Copyright (c) Microsoft Corporation. All rights reserved.
20220
20228
  * Licensed under the MIT License.
@@ -20222,7 +20230,7 @@ function createBrowserConfigurationAuthError(errorCode, correlationId) {
20222
20230
  const storageNotSupported = "storage_not_supported";
20223
20231
  const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
20224
20232
 
20225
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20233
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20226
20234
 
20227
20235
  /*
20228
20236
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -20563,7 +20571,7 @@ function createGuid() {
20563
20571
  return createNewGuid();
20564
20572
  }
20565
20573
 
20566
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20574
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20567
20575
 
20568
20576
  /*
20569
20577
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -20766,7 +20774,7 @@ class DatabaseStorage {
20766
20774
  }
20767
20775
  }
20768
20776
 
20769
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20777
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20770
20778
  /*
20771
20779
  * Copyright (c) Microsoft Corporation. All rights reserved.
20772
20780
  * Licensed under the MIT License.
@@ -20812,7 +20820,7 @@ class MemoryStorage {
20812
20820
  }
20813
20821
  }
20814
20822
 
20815
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20823
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20816
20824
 
20817
20825
  /*
20818
20826
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -20950,7 +20958,7 @@ class AsyncMemoryStorage {
20950
20958
  }
20951
20959
  }
20952
20960
 
20953
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
20961
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
20954
20962
 
20955
20963
  /*
20956
20964
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21098,7 +21106,7 @@ TokenBindingKeyManager.TOKEN_BINDING_KEY_USAGES = [
21098
21106
  "verify",
21099
21107
  ];
21100
21108
 
21101
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21109
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21102
21110
 
21103
21111
  /*
21104
21112
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21234,7 +21242,7 @@ class CryptoOps {
21234
21242
  }
21235
21243
  }
21236
21244
 
21237
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21245
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21238
21246
  /*
21239
21247
  * Copyright (c) Microsoft Corporation. All rights reserved.
21240
21248
  * Licensed under the MIT License.
@@ -21281,7 +21289,7 @@ const LocalStorageUpdated = "localStorageUpdated";
21281
21289
  */
21282
21290
  const SsoCapable = "ssoCapable";
21283
21291
 
21284
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21292
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21285
21293
  /*
21286
21294
  * Copyright (c) Microsoft Corporation. All rights reserved.
21287
21295
  * Licensed under the MIT License.
@@ -21310,7 +21318,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
21310
21318
  return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
21311
21319
  }
21312
21320
 
21313
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21321
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21314
21322
 
21315
21323
  /*
21316
21324
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21401,7 +21409,7 @@ function getCookieExpirationTime(cookieLifeDays) {
21401
21409
  return expr.toUTCString();
21402
21410
  }
21403
21411
 
21404
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21412
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21405
21413
 
21406
21414
  /*
21407
21415
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21443,7 +21451,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
21443
21451
  };
21444
21452
  }
21445
21453
 
21446
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21454
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21447
21455
  /*
21448
21456
  * Copyright (c) Microsoft Corporation. All rights reserved.
21449
21457
  * Licensed under the MIT License.
@@ -21454,7 +21462,7 @@ function isEncrypted(data) {
21454
21462
  data.hasOwnProperty("data"));
21455
21463
  }
21456
21464
 
21457
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21465
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21458
21466
 
21459
21467
  /*
21460
21468
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21513,7 +21521,9 @@ class LocalStorage {
21513
21521
  await invokeAsync(this.importExistingCache.bind(this), ImportExistingCache, this.logger, this.performanceClient, correlationId)(correlationId);
21514
21522
  // Register listener for cache updates in other tabs
21515
21523
  this.broadcast.addEventListener("message", (event) => {
21516
- this.updateCache(event, correlationId);
21524
+ this.updateCache(event, correlationId).catch(() => {
21525
+ this.logger.error("0ufnan", correlationId);
21526
+ });
21517
21527
  });
21518
21528
  this.initialized = true;
21519
21529
  }
@@ -21575,19 +21585,20 @@ class LocalStorage {
21575
21585
  this.broadcast.postMessage({
21576
21586
  key: key,
21577
21587
  value: value,
21578
- context: this.getContext(key),
21588
+ context: this.getBroadcastContext(key),
21579
21589
  });
21580
21590
  }
21581
21591
  removeItem(key) {
21582
- if (this.memoryStorage.containsKey(key)) {
21583
- this.memoryStorage.removeItem(key);
21592
+ const itemExists = this.containsKey(key) || this.memoryStorage.containsKey(key);
21593
+ window.localStorage.removeItem(key);
21594
+ this.memoryStorage.removeItem(key);
21595
+ if (itemExists) {
21584
21596
  this.broadcast.postMessage({
21585
21597
  key: key,
21586
21598
  value: null,
21587
- context: this.getContext(key),
21599
+ context: this.getBroadcastContext(key),
21588
21600
  });
21589
21601
  }
21590
- window.localStorage.removeItem(key);
21591
21602
  }
21592
21603
  getKeys() {
21593
21604
  return Object.keys(window.localStorage);
@@ -21704,29 +21715,73 @@ class LocalStorage {
21704
21715
  await Promise.all(promiseArr);
21705
21716
  return importedArr;
21706
21717
  }
21707
- /**
21708
- * Gets encryption context for a given cache entry. This is clientId for app specific entries, empty string for shared entries
21709
- * @param key
21710
- * @returns
21711
- */
21712
21718
  getContext(key) {
21713
- let context = "";
21714
- if (key.includes(this.clientId)) {
21715
- context = this.clientId; // Used to bind encryption key to this appId
21719
+ return key.includes(this.clientId) ? this.clientId : "";
21720
+ }
21721
+ getBroadcastContext(key) {
21722
+ const normalizedKey = key.toLowerCase();
21723
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
21724
+ if (keySegments.length > 1) {
21725
+ return keySegments[4] === this.clientId.toLowerCase()
21726
+ ? this.clientId
21727
+ : "";
21728
+ }
21729
+ const credentialType = this.getCredentialType(normalizedKey);
21730
+ if (credentialType) {
21731
+ const ownerPrefix = `-${credentialType}-${this.clientId.toLowerCase()}-`;
21732
+ return normalizedKey.includes(ownerPrefix) ? this.clientId : "";
21733
+ }
21734
+ return normalizedKey.includes(this.clientId.toLowerCase())
21735
+ ? this.clientId
21736
+ : "";
21737
+ }
21738
+ getCredentialType(key) {
21739
+ const normalizedKey = key.toLowerCase();
21740
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
21741
+ const structuredCredentialType = keySegments[3];
21742
+ return Object.values(CredentialType)
21743
+ .map((type) => type.toLowerCase())
21744
+ .find((type) => structuredCredentialType === type ||
21745
+ normalizedKey.includes(`-${type}-`));
21746
+ }
21747
+ isFamilyRefreshToken(key, credentialType) {
21748
+ if (credentialType !==
21749
+ CredentialType.REFRESH_TOKEN.toLowerCase()) {
21750
+ return false;
21716
21751
  }
21717
- return context;
21752
+ const normalizedKey = key.toLowerCase();
21753
+ const keySegments = normalizedKey.split(CACHE_KEY_SEPARATOR);
21754
+ return keySegments.length > 1
21755
+ ? keySegments[4] === THE_FAMILY_ID
21756
+ : normalizedKey.includes(`-${credentialType}-${THE_FAMILY_ID}-`);
21718
21757
  }
21719
- updateCache(event, correlationId) {
21758
+ isContextValid(key, context) {
21759
+ const credentialType = this.getCredentialType(key);
21760
+ const isFamilyRefreshToken = credentialType && this.isFamilyRefreshToken(key, credentialType);
21761
+ const isClientBoundCredential = !!credentialType && !isFamilyRefreshToken;
21762
+ return ((!isClientBoundCredential || !!context) &&
21763
+ context === this.getBroadcastContext(key));
21764
+ }
21765
+ async updateCache(event, correlationId) {
21720
21766
  this.logger.trace("17cxcm", correlationId);
21721
21767
  const perfMeasurement = this.performanceClient.startMeasurement(LocalStorageUpdated);
21722
21768
  perfMeasurement.add({ isBackground: true });
21723
- const { key, value, context } = event.data;
21724
- if (!key) {
21769
+ const key = event.data?.key;
21770
+ const context = event.data?.context;
21771
+ if (typeof key !== "string" || !key) {
21725
21772
  this.logger.error("0e10qr", correlationId);
21726
21773
  perfMeasurement.end({ success: false, errorCode: "noKey" });
21727
21774
  return;
21728
21775
  }
21729
- if (context && context !== this.clientId) {
21776
+ if (typeof context !== "string") {
21777
+ this.logger.error("16gtk4", correlationId);
21778
+ perfMeasurement.end({
21779
+ success: false,
21780
+ errorCode: "noContext",
21781
+ });
21782
+ return;
21783
+ }
21784
+ if (!this.isContextValid(key, context)) {
21730
21785
  this.logger.trace(`04rtdy ${context}`, correlationId);
21731
21786
  /*
21732
21787
  * Discarded rather than ended: this is expected routing, not a failure.
@@ -21744,19 +21799,40 @@ class LocalStorage {
21744
21799
  perfMeasurement.discard();
21745
21800
  return;
21746
21801
  }
21747
- if (!value) {
21748
- this.memoryStorage.removeItem(key);
21749
- this.logger.verbose("04ypih", correlationId);
21802
+ const persistedValue = this.getItem(key);
21803
+ try {
21804
+ const value = await this.getItemFromEncryptedCache(key, correlationId);
21805
+ // A newer write or removal occurred while this entry was decrypted.
21806
+ if (this.getItem(key) !== persistedValue) {
21807
+ perfMeasurement.discard();
21808
+ return;
21809
+ }
21810
+ if (!value) {
21811
+ this.memoryStorage.removeItem(key);
21812
+ this.logger.verbose("04ypih", correlationId);
21813
+ }
21814
+ else {
21815
+ this.memoryStorage.setItem(key, value);
21816
+ this.logger.verbose("1vzsgt", correlationId);
21817
+ }
21818
+ perfMeasurement.end({ success: true });
21750
21819
  }
21751
- else {
21752
- this.memoryStorage.setItem(key, value);
21753
- this.logger.verbose("1vzsgt", correlationId);
21820
+ catch {
21821
+ if (this.getItem(key) !== persistedValue) {
21822
+ perfMeasurement.discard();
21823
+ return;
21824
+ }
21825
+ this.memoryStorage.removeItem(key);
21826
+ this.logger.error("0flmza", correlationId);
21827
+ perfMeasurement.end({
21828
+ success: false,
21829
+ errorCode: "cacheUpdateFailed",
21830
+ });
21754
21831
  }
21755
- perfMeasurement.end({ success: true });
21756
21832
  }
21757
21833
  }
21758
21834
 
21759
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21835
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21760
21836
 
21761
21837
  /*
21762
21838
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -21798,7 +21874,7 @@ class SessionStorage {
21798
21874
  }
21799
21875
  }
21800
21876
 
21801
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21877
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21802
21878
  /*
21803
21879
  * Copyright (c) Microsoft Corporation. All rights reserved.
21804
21880
  * Licensed under the MIT License.
@@ -21826,12 +21902,12 @@ const EventType = {
21826
21902
  BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
21827
21903
  };
21828
21904
 
21829
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21905
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21830
21906
  /* eslint-disable header/header */
21831
21907
  const name = "@azure/msal-browser";
21832
- const version$1 = "5.23.0";
21908
+ const version$1 = "5.25.0";
21833
21909
 
21834
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21910
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21835
21911
  /*
21836
21912
  * Copyright (c) Microsoft Corporation. All rights reserved.
21837
21913
  * Licensed under the MIT License.
@@ -21848,7 +21924,7 @@ function removeElementFromArray(array, element) {
21848
21924
  }
21849
21925
  }
21850
21926
 
21851
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
21927
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
21852
21928
 
21853
21929
  /*
21854
21930
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23294,7 +23370,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
23294
23370
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler, staticAuthorityOptions, tokenBindingKeyManager);
23295
23371
  };
23296
23372
 
23297
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
23373
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23298
23374
  /*
23299
23375
  * Copyright (c) Microsoft Corporation. All rights reserved.
23300
23376
  * Licensed under the MIT License.
@@ -23341,7 +23417,7 @@ function getActiveAccount(browserStorage, correlationId) {
23341
23417
  return browserStorage.getActiveAccount(correlationId);
23342
23418
  }
23343
23419
 
23344
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
23420
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23345
23421
 
23346
23422
  /*
23347
23423
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23445,7 +23521,7 @@ class EventHandler {
23445
23521
  }
23446
23522
  }
23447
23523
 
23448
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
23524
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23449
23525
 
23450
23526
  /*
23451
23527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23588,7 +23664,7 @@ async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correla
23588
23664
  }
23589
23665
  }
23590
23666
 
23591
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
23667
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23592
23668
 
23593
23669
  /*
23594
23670
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23726,7 +23802,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
23726
23802
  return httpMethod;
23727
23803
  }
23728
23804
 
23729
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
23805
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23730
23806
 
23731
23807
  /*
23732
23808
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -23933,7 +24009,7 @@ async function initializeAuthorizationRequest(request, interactionType, config,
23933
24009
  return validatedRequest;
23934
24010
  }
23935
24011
 
23936
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24012
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23937
24013
  /*
23938
24014
  * Copyright (c) Microsoft Corporation. All rights reserved.
23939
24015
  * Licensed under the MIT License.
@@ -23951,7 +24027,7 @@ async function initializeAuthorizationRequest(request, interactionType, config,
23951
24027
  */
23952
24028
  const POPUP_RELAY_RESPONSE_TYPE = "msal:popup-relay-response:v1";
23953
24029
 
23954
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24030
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
23955
24031
 
23956
24032
  /*
23957
24033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24057,7 +24133,7 @@ async function waitForPopupRelayResponse(timeoutMs, logger, request, popupWindow
24057
24133
  });
24058
24134
  }
24059
24135
 
24060
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24136
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24061
24137
 
24062
24138
  /*
24063
24139
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24081,7 +24157,7 @@ function extractBrowserRequestState(browserCrypto, state, correlationId) {
24081
24157
  }
24082
24158
  }
24083
24159
 
24084
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24160
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24085
24161
 
24086
24162
  /*
24087
24163
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24120,7 +24196,7 @@ function validateInteractionType(response, browserCrypto, interactionType, corre
24120
24196
  }
24121
24197
  }
24122
24198
 
24123
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24199
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24124
24200
 
24125
24201
  /*
24126
24202
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24209,7 +24285,7 @@ class InteractionHandler {
24209
24285
  }
24210
24286
  }
24211
24287
 
24212
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24288
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24213
24289
 
24214
24290
  /*
24215
24291
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24254,7 +24330,7 @@ function createPlatformAuthExtraParametersNoCache(extraParametersNoCache, isProo
24254
24330
  };
24255
24331
  }
24256
24332
 
24257
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24333
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24258
24334
  /*
24259
24335
  * Copyright (c) Microsoft Corporation. All rights reserved.
24260
24336
  * Licensed under the MIT License.
@@ -24263,7 +24339,7 @@ const contentError = "ContentError";
24263
24339
  const pageException = "PageException";
24264
24340
  const userSwitch = "user_switch";
24265
24341
 
24266
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24342
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24267
24343
  /*
24268
24344
  * Copyright (c) Microsoft Corporation. All rights reserved.
24269
24345
  * Licensed under the MIT License.
@@ -24276,7 +24352,7 @@ const DISABLED = "DISABLED";
24276
24352
  const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
24277
24353
  const UI_NOT_ALLOWED = "UI_NOT_ALLOWED";
24278
24354
 
24279
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24355
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24280
24356
 
24281
24357
  /*
24282
24358
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24348,7 +24424,7 @@ function createNativeAuthError(code, correlationId, description, ext) {
24348
24424
  return error;
24349
24425
  }
24350
24426
 
24351
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24427
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24352
24428
 
24353
24429
  /*
24354
24430
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24397,7 +24473,7 @@ class SilentCacheClient extends StandardInteractionClient {
24397
24473
  }
24398
24474
  }
24399
24475
 
24400
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
24476
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
24401
24477
 
24402
24478
  /*
24403
24479
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24443,7 +24519,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24443
24519
  // initialize native request (statically builds the request; does not contact the broker)
24444
24520
  let nativeRequest;
24445
24521
  try {
24446
- nativeRequest = await this.initializePlatformRequest(request);
24522
+ nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
24447
24523
  }
24448
24524
  catch (e) {
24449
24525
  /*
@@ -24490,7 +24566,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24490
24566
  // dispatch the request to the broker
24491
24567
  try {
24492
24568
  const validatedResponse = await this.platformAuthProvider.sendMessage(nativeRequest);
24493
- const result = await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
24569
+ const result = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(validatedResponse, nativeRequest, reqTimestamp, request.storeInCache);
24494
24570
  nativeATMeasurement.end({
24495
24571
  success: true,
24496
24572
  requestId: result.requestId,
@@ -24593,7 +24669,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24593
24669
  */
24594
24670
  async acquireTokenRedirect(request, rootMeasurement, options) {
24595
24671
  this.logger.trace("0luikq", this.correlationId);
24596
- const nativeRequest = await this.initializePlatformRequest(request);
24672
+ const nativeRequest = await invokeAsync(this.initializePlatformRequest.bind(this), PlatformAuthInteractionClientInitializeRequest, this.logger, this.performanceClient, this.correlationId)(request);
24597
24673
  const navigateToLoginRequestUrl = options?.navigateToLoginRequestUrl ?? true;
24598
24674
  try {
24599
24675
  await this.platformAuthProvider.sendMessage(nativeRequest);
@@ -24645,7 +24721,9 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24645
24721
  const cachedRequest = this.browserStorage.getCachedNativeRequest();
24646
24722
  if (!cachedRequest) {
24647
24723
  this.logger.verbose("0a6zjb", this.correlationId);
24648
- this.performanceClient?.addFields({ errorCode: "no_cached_request" }, this.correlationId);
24724
+ this.performanceClient?.addFields({
24725
+ errorCode: "no_cached_request",
24726
+ }, this.correlationId);
24649
24727
  return null;
24650
24728
  }
24651
24729
  /*
@@ -24661,7 +24739,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24661
24739
  try {
24662
24740
  this.logger.verbose("003x5a", this.correlationId);
24663
24741
  const response = await this.platformAuthProvider.sendMessage(request);
24664
- const authResult = await this.handleNativeResponse(response, request, reqTimestamp, storeInCache);
24742
+ const authResult = await invokeAsync(this.handleNativeResponse.bind(this), PlatformAuthHandleNativeResponse, this.logger, this.performanceClient, this.correlationId)(response, request, reqTimestamp, storeInCache);
24665
24743
  const serverTelemetryManager = initializeServerTelemetryManager(this.apiId, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger, undefined, this.config.system.serverTelemetryEnabled);
24666
24744
  serverTelemetryManager.clearNativeBrokerErrorCode();
24667
24745
  return authResult;
@@ -24711,10 +24789,10 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24711
24789
  // Ensure expires_in is in number format
24712
24790
  response.expires_in = Number(response.expires_in);
24713
24791
  // generate authenticationResult
24714
- const result = await this.generateAuthenticationResult(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
24792
+ const result = await invokeAsync(this.generateAuthenticationResult.bind(this), NativeGenerateAuthResult, this.logger, this.performanceClient, this.correlationId)(response, request, idTokenClaims, baseAccount, authority.canonicalAuthority, reqTimestamp);
24715
24793
  // cache accounts and tokens in the appropriate storage
24716
- await this.cacheAccount(baseAccount, isKmsi(idTokenClaims));
24717
- await this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
24794
+ await invokeAsync(this.cacheAccount.bind(this), PlatformAuthCacheAccount, this.logger, this.performanceClient, this.correlationId)(baseAccount, isKmsi(idTokenClaims));
24795
+ await invokeAsync(this.cacheNativeTokens.bind(this), PlatformAuthCacheNativeTokens, this.logger, this.performanceClient, this.correlationId)(response, request, homeAccountIdentifier, idTokenClaims, result.tenantId, reqTimestamp, authority.getPreferredCache(), // environment
24718
24796
  storeInCache);
24719
24797
  return result;
24720
24798
  }
@@ -24966,8 +25044,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
24966
25044
  * attributeTokens is destructured out because PlatformAuthRequest represents it as a pre-serialized string, not the caller-provided Array<string>.
24967
25045
  */
24968
25046
  const { scopes, claims, extraParametersNoCache, dpopNonce } = request;
24969
- const scopeSet = new ScopeSet(scopes || [], this.correlationId);
24970
- scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
25047
+ const scopeSet = new ScopeSet([...(scopes || []), ...OIDC_DEFAULT_SCOPES], this.correlationId);
24971
25048
  const mergedClaims = buildMergedClaims(claims, configClaims?.length ? configClaims : undefined);
24972
25049
  const hasAttributeTokens = !!request.attributeTokens?.length;
24973
25050
  this.performanceClient?.addFields({
@@ -25122,7 +25199,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
25122
25199
  }
25123
25200
  }
25124
25201
 
25125
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25202
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25126
25203
 
25127
25204
  /*
25128
25205
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25435,7 +25512,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
25435
25512
  return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
25436
25513
  }
25437
25514
 
25438
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25515
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25439
25516
 
25440
25517
  /*
25441
25518
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25490,7 +25567,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
25490
25567
  }
25491
25568
  }
25492
25569
 
25493
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25570
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25494
25571
 
25495
25572
  /*
25496
25573
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25533,7 +25610,7 @@ class NavigationClient {
25533
25610
  }
25534
25611
  }
25535
25612
 
25536
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25613
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25537
25614
 
25538
25615
  /*
25539
25616
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25680,7 +25757,7 @@ function getHeaderDict(headers) {
25680
25757
  }
25681
25758
  }
25682
25759
 
25683
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25760
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25684
25761
 
25685
25762
  /*
25686
25763
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -25811,14 +25888,14 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
25811
25888
  return overlayedConfig;
25812
25889
  }
25813
25890
 
25814
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
25891
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
25815
25892
 
25816
25893
  /*
25817
25894
  * Copyright (c) Microsoft Corporation. All rights reserved.
25818
25895
  * Licensed under the MIT License.
25819
25896
  */
25820
25897
  class PlatformAuthExtensionHandler {
25821
- constructor(logger, handshakeTimeoutMs, performanceClient, extensionId) {
25898
+ constructor(logger, handshakeTimeoutMs, performanceClient, extensionId, correlationId) {
25822
25899
  this.logger = logger;
25823
25900
  this.handshakeTimeoutMs = handshakeTimeoutMs;
25824
25901
  this.extensionId = extensionId;
@@ -25827,7 +25904,8 @@ class PlatformAuthExtensionHandler {
25827
25904
  this.messageChannel = new MessageChannel();
25828
25905
  this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound
25829
25906
  this.performanceClient = performanceClient;
25830
- this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake);
25907
+ this.correlationId = correlationId || createNewGuid();
25908
+ this.handshakeEvent = this.performanceClient.startMeasurement(NativeMessageHandlerHandshake, this.correlationId);
25831
25909
  this.platformAuthType =
25832
25910
  PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER;
25833
25911
  }
@@ -25836,29 +25914,51 @@ class PlatformAuthExtensionHandler {
25836
25914
  * @param request
25837
25915
  */
25838
25916
  async sendMessage(request) {
25839
- this.logger.trace(`0on4p2 ${this.platformAuthType}`, request.correlationId);
25840
- // fall back to native calls
25841
- const extensionRequest = { ...request };
25842
- delete extensionRequest.resourceRequestMethod;
25843
- delete extensionRequest.resourceRequestUri;
25844
- const messageBody = {
25845
- method: NativeExtensionMethod.GetToken,
25846
- request: extensionRequest,
25847
- };
25848
- const req = {
25849
- channel: PlatformAuthConstants.CHANNEL_ID,
25850
- extensionId: this.extensionId,
25851
- responseId: createNewGuid(),
25852
- body: messageBody,
25853
- };
25854
- this.logger.trace(`1qadfi ${this.platformAuthType}`, request.correlationId);
25855
- this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, request.correlationId);
25856
- this.messageChannel.port1.postMessage(req);
25857
- const response = await new Promise((resolve, reject) => {
25858
- this.resolvers.set(req.responseId, { resolve, reject });
25917
+ const correlationId = this.getCorrelationId(request.correlationId);
25918
+ const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionGetToken, correlationId);
25919
+ sendMessageMeasurement.add({
25920
+ platformAuthProviderType: this.platformAuthType,
25859
25921
  });
25860
- const validatedResponse = this.validatePlatformBrokerResponse(response);
25861
- return validatedResponse;
25922
+ this.logger.trace(`0on4p2 ${this.platformAuthType}`, correlationId);
25923
+ try {
25924
+ // fall back to native calls
25925
+ const extensionRequest = { ...request };
25926
+ delete extensionRequest.resourceRequestMethod;
25927
+ delete extensionRequest.resourceRequestUri;
25928
+ const messageBody = {
25929
+ method: NativeExtensionMethod.GetToken,
25930
+ request: extensionRequest,
25931
+ };
25932
+ const req = {
25933
+ channel: PlatformAuthConstants.CHANNEL_ID,
25934
+ extensionId: this.extensionId,
25935
+ responseId: createNewGuid(),
25936
+ body: messageBody,
25937
+ };
25938
+ this.logger.trace(`1qadfi ${this.platformAuthType}`, correlationId);
25939
+ this.logger.tracePii(`1xm533 ${this.platformAuthType} ${JSON.stringify(req)}`, correlationId);
25940
+ this.messageChannel.port1.postMessage(req);
25941
+ const response = await new Promise((resolve, reject) => {
25942
+ this.resolvers.set(req.responseId, {
25943
+ resolve,
25944
+ reject,
25945
+ correlationId,
25946
+ });
25947
+ });
25948
+ const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
25949
+ sendMessageMeasurement.end({
25950
+ success: true,
25951
+ platformAuthProviderType: this.platformAuthType,
25952
+ });
25953
+ return validatedResponse;
25954
+ }
25955
+ catch (e) {
25956
+ sendMessageMeasurement.end({
25957
+ success: false,
25958
+ platformAuthProviderType: this.platformAuthType,
25959
+ }, e);
25960
+ throw e;
25961
+ }
25862
25962
  }
25863
25963
  /**
25864
25964
  * Returns an instance of the MessageHandler that has successfully established a connection with an extension
@@ -25869,23 +25969,51 @@ class PlatformAuthExtensionHandler {
25869
25969
  */
25870
25970
  static async createProvider(logger, handshakeTimeoutMs, performanceClient, correlationId) {
25871
25971
  logger.trace("15zfnw", correlationId);
25972
+ const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthExtensionCreateProvider, correlationId);
25872
25973
  try {
25873
- const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID);
25874
- await preferredProvider.sendHandshakeRequest(correlationId);
25974
+ const preferredProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, PlatformAuthConstants.PREFERRED_EXTENSION_ID, correlationId);
25975
+ await preferredProvider.sendHandshakeRequest();
25976
+ createProviderMeasurement.add({
25977
+ platformAuthProviderAvailable: true,
25978
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
25979
+ });
25980
+ createProviderMeasurement.end({
25981
+ platformAuthProviderAvailable: true,
25982
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
25983
+ });
25875
25984
  return preferredProvider;
25876
25985
  }
25877
25986
  catch (e) {
25878
25987
  // If preferred extension fails for whatever reason, fallback to using any installed extension
25879
- const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient);
25880
- await backupProvider.sendHandshakeRequest(correlationId);
25881
- return backupProvider;
25988
+ try {
25989
+ const backupProvider = new PlatformAuthExtensionHandler(logger, handshakeTimeoutMs, performanceClient, undefined, correlationId);
25990
+ await backupProvider.sendHandshakeRequest();
25991
+ createProviderMeasurement.add({
25992
+ platformAuthProviderAvailable: true,
25993
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
25994
+ });
25995
+ createProviderMeasurement.end({
25996
+ platformAuthProviderAvailable: true,
25997
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
25998
+ });
25999
+ return backupProvider;
26000
+ }
26001
+ catch (backupError) {
26002
+ createProviderMeasurement.add({
26003
+ platformAuthProviderAvailable: false,
26004
+ });
26005
+ createProviderMeasurement.end({
26006
+ platformAuthProviderAvailable: false,
26007
+ }, backupError);
26008
+ throw backupError;
26009
+ }
25882
26010
  }
25883
26011
  }
25884
26012
  /**
25885
26013
  * Send handshake request helper.
25886
26014
  */
25887
- async sendHandshakeRequest(correlationId) {
25888
- this.logger.trace(`1dpg9o ${this.platformAuthType}`, correlationId);
26015
+ async sendHandshakeRequest() {
26016
+ this.logger.trace(`1dpg9o ${this.platformAuthType}`, this.correlationId);
25889
26017
  // Register this event listener before sending handshake
25890
26018
  window.addEventListener("message", this.windowListener, false); // false is important, because content script message processing should work first
25891
26019
  const req = {
@@ -25899,13 +26027,18 @@ class PlatformAuthExtensionHandler {
25899
26027
  this.handshakeEvent.add({
25900
26028
  extensionId: this.extensionId,
25901
26029
  extensionHandshakeTimeoutMs: this.handshakeTimeoutMs,
26030
+ platformAuthRequestCorrelationId: this.correlationId,
25902
26031
  });
25903
26032
  this.messageChannel.port1.onmessage = (event) => {
25904
26033
  this.onChannelMessage(event);
25905
26034
  };
25906
26035
  window.postMessage(req, window.origin, [this.messageChannel.port2]);
25907
26036
  return new Promise((resolve, reject) => {
25908
- this.handshakeResolvers.set(req.responseId, { resolve, reject });
26037
+ this.handshakeResolvers.set(req.responseId, {
26038
+ resolve,
26039
+ reject,
26040
+ correlationId: this.correlationId,
26041
+ });
25909
26042
  this.timeoutId = window.setTimeout(() => {
25910
26043
  /*
25911
26044
  * Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.
@@ -25914,11 +26047,14 @@ class PlatformAuthExtensionHandler {
25914
26047
  window.removeEventListener("message", this.windowListener, false);
25915
26048
  this.messageChannel.port1.close();
25916
26049
  this.messageChannel.port2.close();
26050
+ this.handshakeEvent.add({
26051
+ extensionHandshakeTimedOut: true,
26052
+ });
25917
26053
  this.handshakeEvent.end({
25918
26054
  extensionHandshakeTimedOut: true,
25919
26055
  success: false,
25920
26056
  });
25921
- reject(createBrowserAuthError(nativeHandshakeTimeout, ""));
26057
+ reject(createBrowserAuthError(nativeHandshakeTimeout, this.correlationId));
25922
26058
  this.handshakeResolvers.delete(req.responseId);
25923
26059
  }, this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here
25924
26060
  });
@@ -25928,7 +26064,7 @@ class PlatformAuthExtensionHandler {
25928
26064
  * @param event
25929
26065
  */
25930
26066
  onWindowMessage(event) {
25931
- const correlationId = createGuid();
26067
+ let correlationId = createGuid();
25932
26068
  this.logger.trace(`0jpn5u ${this.platformAuthType}`, correlationId);
25933
26069
  // We only accept messages from ourselves
25934
26070
  if (event.source !== window) {
@@ -25952,6 +26088,7 @@ class PlatformAuthExtensionHandler {
25952
26088
  this.logger.trace(`07buhm ${this.platformAuthType} ${request.responseId}`, correlationId);
25953
26089
  return;
25954
26090
  }
26091
+ correlationId = handshakeResolver.correlationId;
25955
26092
  // If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed
25956
26093
  this.logger.verbose(request.extensionId
25957
26094
  ? `0xrkug ${request.extensionId}`
@@ -25960,11 +26097,15 @@ class PlatformAuthExtensionHandler {
25960
26097
  this.messageChannel.port1.close();
25961
26098
  this.messageChannel.port2.close();
25962
26099
  window.removeEventListener("message", this.windowListener, false);
26100
+ this.handshakeEvent.add({
26101
+ extensionInstalled: false,
26102
+ });
25963
26103
  this.handshakeEvent.end({
25964
26104
  success: false,
25965
26105
  extensionInstalled: false,
25966
26106
  });
25967
- handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, ""));
26107
+ handshakeResolver.reject(createBrowserAuthError(nativeExtensionNotInstalled, correlationId));
26108
+ this.handshakeResolvers.delete(request.responseId);
25968
26109
  }
25969
26110
  }
25970
26111
  /**
@@ -25972,36 +26113,47 @@ class PlatformAuthExtensionHandler {
25972
26113
  * @param event
25973
26114
  */
25974
26115
  onChannelMessage(event) {
25975
- const correlationId = createGuid();
25976
- this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
25977
26116
  const request = event.data;
25978
- const resolver = this.resolvers.get(request.responseId);
25979
- const handshakeResolver = this.handshakeResolvers.get(request.responseId);
26117
+ const responseId = request?.responseId;
26118
+ const resolver = responseId
26119
+ ? this.resolvers.get(responseId)
26120
+ : undefined;
26121
+ const handshakeResolver = responseId
26122
+ ? this.handshakeResolvers.get(responseId)
26123
+ : undefined;
26124
+ const correlationId = resolver?.correlationId ||
26125
+ handshakeResolver?.correlationId ||
26126
+ createGuid();
26127
+ this.logger.trace(`1py8yf ${this.platformAuthType}`, correlationId);
25980
26128
  try {
25981
26129
  const method = request.body.method;
25982
26130
  if (method === NativeExtensionMethod.Response) {
25983
26131
  if (!resolver) {
25984
26132
  return;
25985
26133
  }
25986
- const response = request.body.response;
25987
- this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
25988
- this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
25989
- if (response.status !== "Success") {
25990
- resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
25991
- }
25992
- else if (response.result) {
25993
- if (response.result["code"] &&
25994
- response.result["description"]) {
25995
- resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
26134
+ try {
26135
+ const response = request.body.response;
26136
+ this.logger.trace(`19hpgm ${this.platformAuthType}`, correlationId);
26137
+ this.logger.tracePii(`179a24 ${this.platformAuthType} ${JSON.stringify(response)}`, correlationId);
26138
+ if (response.status !== "Success") {
26139
+ resolver.reject(createNativeAuthError(response.code, correlationId, response.description, response.ext));
26140
+ }
26141
+ else if (response.result) {
26142
+ if (response.result["code"] &&
26143
+ response.result["description"]) {
26144
+ resolver.reject(createNativeAuthError(response.result["code"], correlationId, response.result["description"], response.result["ext"]));
26145
+ }
26146
+ else {
26147
+ resolver.resolve(response.result);
26148
+ }
25996
26149
  }
25997
26150
  else {
25998
- resolver.resolve(response.result);
26151
+ throw createAuthError(unexpectedError, correlationId, "Event does not contain result.");
25999
26152
  }
26000
26153
  }
26001
- else {
26002
- throw createAuthError(unexpectedError, correlationId, "Event does not contain result.");
26154
+ finally {
26155
+ this.resolvers.delete(request.responseId);
26003
26156
  }
26004
- this.resolvers.delete(request.responseId);
26005
26157
  }
26006
26158
  else if (method === NativeExtensionMethod.HandshakeResponse) {
26007
26159
  if (!handshakeResolver) {
@@ -26011,25 +26163,46 @@ class PlatformAuthExtensionHandler {
26011
26163
  clearTimeout(this.timeoutId); // Clear setTimeout
26012
26164
  window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
26013
26165
  this.extensionId = request.extensionId;
26014
- this.extensionVersion = request.body.version;
26166
+ this.extensionVersion = request.body.version?.toString();
26015
26167
  this.logger.verbose(`0yf5ib ${this.platformAuthType} ${this.extensionId}`, correlationId);
26168
+ this.handshakeEvent.add({
26169
+ extensionId: this.extensionId,
26170
+ extensionVersion: this.extensionVersion,
26171
+ extensionInstalled: true,
26172
+ });
26016
26173
  this.handshakeEvent.end({
26174
+ extensionId: this.extensionId,
26175
+ extensionVersion: this.extensionVersion,
26017
26176
  extensionInstalled: true,
26018
26177
  success: true,
26019
26178
  });
26020
26179
  handshakeResolver.resolve();
26021
26180
  this.handshakeResolvers.delete(request.responseId);
26022
26181
  }
26023
- // Do nothing if method is not Response or HandshakeResponse
26182
+ else if (resolver) {
26183
+ this.resolvers.delete(request.responseId);
26184
+ resolver.reject(createAuthError(unexpectedError, correlationId, "Extension response contains an unexpected method."));
26185
+ }
26024
26186
  }
26025
26187
  catch (err) {
26026
26188
  this.logger.error("0xf978", correlationId);
26027
26189
  this.logger.errorPii(`04i99o ${err}`, correlationId);
26028
26190
  this.logger.errorPii(`0xdvsy ${event}`, correlationId);
26029
26191
  if (resolver) {
26030
- resolver.reject(err);
26192
+ this.resolvers.delete(responseId);
26193
+ resolver.reject(err instanceof AuthError
26194
+ ? err
26195
+ : createAuthError(unexpectedError, correlationId, "Unable to parse extension response."));
26031
26196
  }
26032
26197
  else if (handshakeResolver) {
26198
+ clearTimeout(this.timeoutId);
26199
+ window.removeEventListener("message", this.windowListener, false);
26200
+ this.messageChannel.port1.close();
26201
+ this.messageChannel.port2.close();
26202
+ this.handshakeEvent.end({
26203
+ success: false,
26204
+ });
26205
+ this.handshakeResolvers.delete(responseId);
26033
26206
  handshakeResolver.reject(err);
26034
26207
  }
26035
26208
  }
@@ -26038,19 +26211,34 @@ class PlatformAuthExtensionHandler {
26038
26211
  * Validates native platform response before processing
26039
26212
  * @param response
26040
26213
  */
26041
- validatePlatformBrokerResponse(response) {
26042
- if (response.hasOwnProperty("access_token") &&
26043
- response.hasOwnProperty("id_token") &&
26044
- response.hasOwnProperty("client_info") &&
26045
- response.hasOwnProperty("account") &&
26046
- response.hasOwnProperty("scope") &&
26047
- response.hasOwnProperty("expires_in")) {
26214
+ validatePlatformBrokerResponse(response, correlationId) {
26215
+ const responseCorrelationId = this.getCorrelationId(correlationId);
26216
+ const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthExtensionValidateResponse, responseCorrelationId);
26217
+ if (response &&
26218
+ Object.prototype.hasOwnProperty.call(response, "access_token") &&
26219
+ Object.prototype.hasOwnProperty.call(response, "id_token") &&
26220
+ Object.prototype.hasOwnProperty.call(response, "client_info") &&
26221
+ Object.prototype.hasOwnProperty.call(response, "account") &&
26222
+ Object.prototype.hasOwnProperty.call(response, "scope") &&
26223
+ Object.prototype.hasOwnProperty.call(response, "expires_in")) {
26224
+ validationMeasurement.end({
26225
+ success: true,
26226
+ platformAuthProviderType: this.platformAuthType,
26227
+ });
26048
26228
  return response;
26049
26229
  }
26050
26230
  else {
26051
- throw createAuthError(unexpectedError, "", "Response missing expected properties.");
26231
+ const error = createAuthError(unexpectedError, responseCorrelationId, "Response missing expected properties.");
26232
+ validationMeasurement.end({
26233
+ success: false,
26234
+ platformAuthProviderType: this.platformAuthType,
26235
+ }, error);
26236
+ throw error;
26052
26237
  }
26053
26238
  }
26239
+ getCorrelationId(correlationId) {
26240
+ return correlationId || this.correlationId;
26241
+ }
26054
26242
  /**
26055
26243
  * Returns the Id for the browser extension this handler is communicating with
26056
26244
  * @returns
@@ -26075,7 +26263,7 @@ class PlatformAuthExtensionHandler {
26075
26263
  }
26076
26264
  }
26077
26265
 
26078
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
26266
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
26079
26267
 
26080
26268
  /*
26081
26269
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26090,17 +26278,49 @@ class PlatformAuthDOMHandler {
26090
26278
  }
26091
26279
  static async createProvider(logger, performanceClient, correlationId) {
26092
26280
  logger.trace("12mj4a", correlationId);
26093
- // @ts-ignore
26094
- if (window.navigator?.platformAuthentication) {
26095
- const supportedContracts =
26096
- // @ts-ignore
26097
- await window.navigator.platformAuthentication.getSupportedContracts(PlatformAuthConstants.MICROSOFT_ENTRA_BROKERID);
26098
- if (supportedContracts?.includes(PlatformAuthConstants.PLATFORM_DOM_APIS)) {
26281
+ const createProviderMeasurement = performanceClient.startMeasurement(PlatformAuthDOMCreateProvider, correlationId);
26282
+ try {
26283
+ const platformAuthentication = window.navigator.platformAuthentication;
26284
+ if (!platformAuthentication) {
26285
+ createProviderMeasurement.add({
26286
+ platformAuthProviderAvailable: false,
26287
+ });
26288
+ createProviderMeasurement.end({
26289
+ platformAuthProviderAvailable: false,
26290
+ });
26291
+ return undefined;
26292
+ }
26293
+ const supportedContracts = (await invokeAsync(platformAuthentication.getSupportedContracts.bind(platformAuthentication), PlatformAuthDOMGetSupportedContracts, logger, performanceClient, correlationId)(PlatformAuthConstants.MICROSOFT_ENTRA_BROKERID));
26294
+ const contractSupported = supportedContracts?.includes(PlatformAuthConstants.PLATFORM_DOM_APIS);
26295
+ if (contractSupported) {
26099
26296
  logger.trace("1h5q1r", correlationId);
26297
+ createProviderMeasurement.add({
26298
+ platformAuthProviderAvailable: true,
26299
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
26300
+ });
26301
+ createProviderMeasurement.end({
26302
+ platformAuthProviderAvailable: true,
26303
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
26304
+ });
26100
26305
  return new PlatformAuthDOMHandler(logger, performanceClient, correlationId);
26101
26306
  }
26307
+ createProviderMeasurement.add({
26308
+ platformAuthProviderAvailable: false,
26309
+ });
26310
+ createProviderMeasurement.end({
26311
+ platformAuthProviderAvailable: false,
26312
+ });
26313
+ return undefined;
26314
+ }
26315
+ catch (e) {
26316
+ createProviderMeasurement.add({
26317
+ platformAuthProviderAvailable: false,
26318
+ });
26319
+ createProviderMeasurement.end({
26320
+ platformAuthProviderAvailable: false,
26321
+ }, e);
26322
+ throw e;
26102
26323
  }
26103
- return undefined;
26104
26324
  }
26105
26325
  /**
26106
26326
  * Returns the Id for the broker extension this handler is communicating with
@@ -26121,31 +26341,46 @@ class PlatformAuthDOMHandler {
26121
26341
  * @returns
26122
26342
  */
26123
26343
  async sendMessage(request) {
26124
- this.logger.trace(`02bcil ${this.platformAuthType}`, request.correlationId);
26344
+ const correlationId = this.getCorrelationId(request.correlationId);
26345
+ const sendMessageMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMGetToken, correlationId);
26346
+ sendMessageMeasurement.add({
26347
+ platformAuthProviderType: this.platformAuthType,
26348
+ });
26349
+ this.logger.trace(`02bcil ${this.platformAuthType}`, correlationId);
26125
26350
  try {
26126
- const platformDOMRequest = this.initializePlatformDOMRequest(request);
26351
+ const platformDOMRequest = invoke(this.initializePlatformDOMRequest.bind(this), PlatformAuthDOMInitializeRequest, this.logger, this.performanceClient, correlationId)(request);
26127
26352
  const response =
26128
26353
  // @ts-ignore
26129
26354
  await window.navigator.platformAuthentication.executeGetToken(platformDOMRequest);
26130
- return this.validatePlatformBrokerResponse(response, request.correlationId);
26355
+ const validatedResponse = this.validatePlatformBrokerResponse(response, correlationId);
26356
+ sendMessageMeasurement.end({
26357
+ success: true,
26358
+ platformAuthProviderType: this.platformAuthType,
26359
+ });
26360
+ return validatedResponse;
26131
26361
  }
26132
26362
  catch (e) {
26133
- this.logger.error(`11im7g ${this.platformAuthType}`, request.correlationId);
26363
+ this.logger.error(`11im7g ${this.platformAuthType}`, correlationId);
26364
+ sendMessageMeasurement.end({
26365
+ success: false,
26366
+ platformAuthProviderType: this.platformAuthType,
26367
+ }, e);
26134
26368
  throw e;
26135
26369
  }
26136
26370
  }
26137
26371
  initializePlatformDOMRequest(request) {
26138
- this.logger.trace(`15d6yv ${this.platformAuthType}`, request.correlationId);
26139
26372
  const { accountId, clientId, authority, scope, redirectUri, correlationId, state, preferBinding, enclave, reqCnf, extraParametersNoCache, extraParameters, ...remainingProperties } = request;
26373
+ const requestCorrelationId = this.getCorrelationId(correlationId);
26374
+ this.logger.trace(`15d6yv ${this.platformAuthType}`, requestCorrelationId);
26140
26375
  delete remainingProperties.resourceRequestMethod;
26141
26376
  delete remainingProperties.resourceRequestUri;
26142
- const validExtraParameters = this.getDOMExtraParams(remainingProperties, correlationId);
26377
+ const validExtraParameters = this.getDOMExtraParams(remainingProperties, requestCorrelationId);
26143
26378
  const platformDOMRequest = {
26144
26379
  accountId: accountId,
26145
26380
  brokerId: this.getExtensionId(),
26146
26381
  authority: authority,
26147
26382
  clientId: clientId,
26148
- correlationId: correlationId || this.correlationId,
26383
+ correlationId: requestCorrelationId,
26149
26384
  extraParameters: {
26150
26385
  ...extraParameters,
26151
26386
  ...validExtraParameters,
@@ -26162,32 +26397,68 @@ class PlatformAuthDOMHandler {
26162
26397
  return platformDOMRequest;
26163
26398
  }
26164
26399
  validatePlatformBrokerResponse(response, correlationId) {
26165
- if (response.hasOwnProperty("isSuccess")) {
26166
- if (response.hasOwnProperty("accessToken") &&
26167
- response.hasOwnProperty("idToken") &&
26168
- response.hasOwnProperty("clientInfo") &&
26169
- response.hasOwnProperty("account") &&
26170
- response.hasOwnProperty("scopes") &&
26171
- response.hasOwnProperty("expiresIn")) {
26400
+ const validationMeasurement = this.performanceClient.startMeasurement(PlatformAuthDOMValidateResponse, correlationId);
26401
+ const requiredKeys = [
26402
+ "accessToken",
26403
+ "idToken",
26404
+ "clientInfo",
26405
+ "account",
26406
+ "scopes",
26407
+ "expiresIn",
26408
+ ];
26409
+ const isValid = response &&
26410
+ requiredKeys.every((key) => Object.prototype.hasOwnProperty.call(response, key));
26411
+ if (response &&
26412
+ Object.prototype.hasOwnProperty.call(response, "isSuccess")) {
26413
+ if (isValid) {
26172
26414
  this.logger.trace(`0h4vei ${this.platformAuthType}`, correlationId);
26173
- return this.convertToPlatformBrokerResponse(response, correlationId);
26415
+ try {
26416
+ const validatedResponse = this.convertToPlatformBrokerResponse(response, correlationId);
26417
+ validationMeasurement.end({
26418
+ success: true,
26419
+ platformAuthProviderType: this.platformAuthType,
26420
+ });
26421
+ return validatedResponse;
26422
+ }
26423
+ catch (e) {
26424
+ validationMeasurement.end({
26425
+ success: false,
26426
+ platformAuthProviderType: this.platformAuthType,
26427
+ }, e);
26428
+ throw e;
26429
+ }
26174
26430
  }
26175
- else if (response.hasOwnProperty("error")) {
26431
+ else if (Object.prototype.hasOwnProperty.call(response, "error")) {
26176
26432
  const errorResponse = response;
26177
26433
  if (errorResponse.isSuccess === false &&
26178
26434
  errorResponse.error &&
26179
26435
  errorResponse.error.code) {
26180
26436
  this.logger.trace(`0g92vm ${this.platformAuthType}`, correlationId);
26181
- throw createNativeAuthError(errorResponse.error.code, correlationId, errorResponse.error.description, {
26437
+ const nativeAuthError = createNativeAuthError(errorResponse.error.code, correlationId, errorResponse.error.description, {
26182
26438
  error: parseInt(errorResponse.error.errorCode),
26183
26439
  protocol_error: errorResponse.error.protocolError,
26184
26440
  status: errorResponse.error.status,
26185
26441
  properties: errorResponse.error.properties,
26186
26442
  });
26443
+ validationMeasurement.end({
26444
+ success: false,
26445
+ platformAuthProviderType: this.platformAuthType,
26446
+ brokerErrorName: errorResponse.error.code,
26447
+ brokerErrorCode: errorResponse.error.errorCode,
26448
+ }, nativeAuthError);
26449
+ throw nativeAuthError;
26187
26450
  }
26188
26451
  }
26189
26452
  }
26190
- throw createAuthError(unexpectedError, correlationId, "Response missing expected properties.");
26453
+ const error = createAuthError(unexpectedError, correlationId, "Response missing expected properties.");
26454
+ validationMeasurement.end({
26455
+ success: false,
26456
+ platformAuthProviderType: this.platformAuthType,
26457
+ }, error);
26458
+ throw error;
26459
+ }
26460
+ getCorrelationId(correlationId) {
26461
+ return correlationId || this.correlationId;
26191
26462
  }
26192
26463
  convertToPlatformBrokerResponse(response, correlationId) {
26193
26464
  this.logger.trace(`14913t ${this.platformAuthType}`, correlationId);
@@ -26243,29 +26514,58 @@ class PlatformAuthDOMHandler {
26243
26514
  }
26244
26515
  }
26245
26516
 
26246
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
26517
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
26247
26518
  async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
26248
26519
  logger.trace("134j0v", correlationId);
26520
+ const discoveryMeasurement = performanceClient.startMeasurement(PlatformAuthProviderDiscovery, correlationId);
26249
26521
  logger.trace(`04c81g ${enablePlatformBrokerDOMSupport}`, correlationId);
26250
26522
  let platformAuthProvider;
26251
26523
  try {
26252
26524
  if (enablePlatformBrokerDOMSupport) {
26253
26525
  // Check if DOM platform API is supported first
26254
- platformAuthProvider = await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
26526
+ try {
26527
+ platformAuthProvider =
26528
+ await PlatformAuthDOMHandler.createProvider(logger, performanceClient, correlationId);
26529
+ }
26530
+ catch (e) {
26531
+ logger.trace("1ij09j", correlationId);
26532
+ }
26533
+ if (platformAuthProvider) {
26534
+ discoveryMeasurement.add({
26535
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
26536
+ });
26537
+ discoveryMeasurement.end({
26538
+ success: true,
26539
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_DOM_PROVIDER,
26540
+ });
26541
+ return platformAuthProvider;
26542
+ }
26255
26543
  }
26256
- if (!platformAuthProvider) {
26257
- logger.trace("0l3na8", correlationId);
26258
- /*
26259
- * If DOM APIs are not available, check if browser extension is available.
26260
- * Platform authentication via DOM APIs is preferred over extension APIs.
26261
- */
26262
- platformAuthProvider =
26263
- await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
26264
- DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
26544
+ logger.trace("0l3na8", correlationId);
26545
+ /*
26546
+ * If DOM APIs are not available, check if browser extension is available.
26547
+ * Platform authentication via DOM APIs is preferred over extension APIs.
26548
+ */
26549
+ platformAuthProvider =
26550
+ await PlatformAuthExtensionHandler.createProvider(logger, nativeBrokerHandshakeTimeout ||
26551
+ DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, performanceClient, correlationId);
26552
+ if (platformAuthProvider) {
26553
+ discoveryMeasurement.add({
26554
+ platformAuthProviderType: PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER,
26555
+ });
26265
26556
  }
26557
+ discoveryMeasurement.end({
26558
+ success: !!platformAuthProvider,
26559
+ platformAuthProviderType: platformAuthProvider
26560
+ ? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
26561
+ : undefined,
26562
+ });
26266
26563
  }
26267
26564
  catch (e) {
26268
26565
  logger.trace("0icbd7", e);
26566
+ discoveryMeasurement.end({
26567
+ success: false,
26568
+ }, e);
26269
26569
  }
26270
26570
  return platformAuthProvider;
26271
26571
  }
@@ -26277,8 +26577,22 @@ async function getPlatformAuthProvider(logger, performanceClient, correlationId,
26277
26577
  * @param platformAuthProvider
26278
26578
  * @param authenticationScheme
26279
26579
  */
26280
- function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme) {
26580
+ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, authenticationScheme, performanceClient) {
26281
26581
  logger.trace("0uko3r", correlationId);
26582
+ const schemeSupported = !authenticationScheme ||
26583
+ authenticationScheme === AuthenticationScheme.BEARER ||
26584
+ authenticationScheme === AuthenticationScheme.POP;
26585
+ const fields = {
26586
+ allowPlatformBroker: config.system.allowPlatformBroker,
26587
+ ...(config.system.allowPlatformBroker && {
26588
+ platformAuthProviderType: platformAuthProvider instanceof PlatformAuthDOMHandler
26589
+ ? PlatformAuthConstants.PLATFORM_DOM_PROVIDER
26590
+ : platformAuthProvider
26591
+ ? PlatformAuthConstants.PLATFORM_EXTENSION_PROVIDER
26592
+ : undefined,
26593
+ }),
26594
+ };
26595
+ performanceClient?.addFields(fields, correlationId);
26282
26596
  // throw an error if allowPlatformBroker is not enabled and allowPlatformBrokerWithDOM is enabled
26283
26597
  if (!config.system.allowPlatformBroker &&
26284
26598
  config.experimental.allowPlatformBrokerWithDOM) {
@@ -26294,21 +26608,15 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
26294
26608
  // Platform broker auth providers are not available
26295
26609
  return false;
26296
26610
  }
26297
- if (authenticationScheme) {
26298
- switch (authenticationScheme) {
26299
- case AuthenticationScheme.BEARER:
26300
- case AuthenticationScheme.POP:
26301
- logger.trace("18tev1", correlationId);
26302
- return true;
26303
- default:
26304
- logger.trace("1dd2nh", correlationId);
26305
- return false;
26306
- }
26611
+ if (!schemeSupported) {
26612
+ logger.trace("1dd2nh", correlationId);
26613
+ return false;
26307
26614
  }
26615
+ logger.trace("18tev1", correlationId);
26308
26616
  return true;
26309
26617
  }
26310
26618
 
26311
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
26619
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
26312
26620
 
26313
26621
  /*
26314
26622
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26817,7 +27125,7 @@ class PopupClient extends StandardInteractionClient {
26817
27125
  }
26818
27126
  }
26819
27127
 
26820
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27128
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
26821
27129
 
26822
27130
  /*
26823
27131
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27267,7 +27575,7 @@ class RedirectClient extends StandardInteractionClient {
27267
27575
  }
27268
27576
  }
27269
27577
 
27270
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27578
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27271
27579
 
27272
27580
  /*
27273
27581
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27333,7 +27641,7 @@ function removeHiddenIframe(iframe) {
27333
27641
  }
27334
27642
  }
27335
27643
 
27336
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27644
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27337
27645
 
27338
27646
  /*
27339
27647
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27571,7 +27879,7 @@ class SilentIframeClient extends StandardInteractionClient {
27571
27879
  }
27572
27880
  }
27573
27881
 
27574
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27882
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27575
27883
 
27576
27884
  /*
27577
27885
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27638,7 +27946,7 @@ class SilentRefreshClient extends StandardInteractionClient {
27638
27946
  }
27639
27947
  }
27640
27948
 
27641
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27949
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27642
27950
 
27643
27951
  /*
27644
27952
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27651,7 +27959,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
27651
27959
  }
27652
27960
  }
27653
27961
 
27654
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
27962
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27655
27963
 
27656
27964
  /*
27657
27965
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27724,7 +28032,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
27724
28032
  }
27725
28033
  }
27726
28034
 
27727
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
28035
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27728
28036
  function collectInstanceStats(currentClientId, performanceEvent, logger, correlationId) {
27729
28037
  const frameInstances =
27730
28038
  // @ts-ignore
@@ -27740,7 +28048,126 @@ function collectInstanceStats(currentClientId, performanceEvent, logger, correla
27740
28048
  });
27741
28049
  }
27742
28050
 
27743
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
28051
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
28052
+
28053
+ /*
28054
+ * Copyright (c) Microsoft Corporation. All rights reserved.
28055
+ * Licensed under the MIT License.
28056
+ */
28057
+ /**
28058
+ * Selects request preparation using the current account and broker availability.
28059
+ */
28060
+ function resolveSilentRequestPreparation(input, platformAuthProvider, logger, performanceClient) {
28061
+ const { request, account, correlationId, config } = input;
28062
+ const prepareRequest = account.nativeAccountId &&
28063
+ isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvider, request.authenticationScheme, performanceClient)
28064
+ ? preparePlatformSilentRequest
28065
+ : prepareWebSilentRequest;
28066
+ return prepareRequest(input);
28067
+ }
28068
+ /**
28069
+ * Preserves the standard web thumbprint and caller-owned request references.
28070
+ */
28071
+ function prepareWebSilentRequest({ request, account, correlationId, config, }) {
28072
+ const thumbprint = getRequestThumbprint(config.auth.clientId, {
28073
+ ...request,
28074
+ authority: request.authority || config.auth.authority}, account.homeAccountId);
28075
+ return {
28076
+ key: JSON.stringify(thumbprint),
28077
+ request,
28078
+ account,
28079
+ };
28080
+ }
28081
+ /**
28082
+ * Snapshots broker inputs and creates the extended key before acquisition begins.
28083
+ */
28084
+ function preparePlatformSilentRequest({ request, account, config, }) {
28085
+ const platformRequest = snapshotPlatformSilentRequest({
28086
+ ...request,
28087
+ account,
28088
+ });
28089
+ return {
28090
+ key: `platform:${getPlatformSilentRequestKey(platformRequest, config)}`,
28091
+ request: platformRequest,
28092
+ account: platformRequest.account,
28093
+ };
28094
+ }
28095
+ /**
28096
+ * Extends the common thumbprint with broker and client-side silent-flow inputs.
28097
+ * Scopes are normalized like the broker request, without folding their casing.
28098
+ */
28099
+ function getPlatformSilentRequestKey(request, config) {
28100
+ const thumbprint = getRequestThumbprint(config.auth.clientId, {
28101
+ ...request,
28102
+ authority: request.authority || config.auth.authority,
28103
+ correlationId: request.correlationId || "",
28104
+ scopes: new ScopeSet([...(request.scopes || []), ...OIDC_DEFAULT_SCOPES], request.correlationId || "")
28105
+ .asArray()
28106
+ .sort(),
28107
+ }, request.account.homeAccountId);
28108
+ return JSON.stringify({
28109
+ ...thumbprint,
28110
+ accountId: request.account.nativeAccountId,
28111
+ accountTenantId: request.account.tenantId,
28112
+ accountEnvironment: request.account.environment,
28113
+ azureCloudInstance: request.azureCloudOptions?.azureCloudInstance,
28114
+ cloudTenantId: request.azureCloudOptions?.tenant,
28115
+ redirectUri: request.redirectUri || config.auth.redirectUri,
28116
+ nonce: request.nonce,
28117
+ prompt: request.prompt,
28118
+ state: request.state,
28119
+ loginHint: request.loginHint,
28120
+ popKid: request.popKid,
28121
+ shrNonce: request.shrNonce,
28122
+ dpopNonce: request.dpopNonce,
28123
+ skipBrokerClaims: request.embeddedClientId
28124
+ ? !!request.skipBrokerClaims
28125
+ : undefined,
28126
+ extraParameters: canonicalizeStringDict(request.extraParameters),
28127
+ extraQueryParameters: canonicalizeStringDict(request.extraQueryParameters),
28128
+ extraParametersNoCache: canonicalizeStringDict(request.extraParametersNoCache),
28129
+ forceRefresh: !!request.forceRefresh,
28130
+ cacheLookupPolicy: request.cacheLookupPolicy ?? CacheLookupPolicy.Default,
28131
+ });
28132
+ }
28133
+ /**
28134
+ * Copies caller-owned mutable inputs before asynchronous broker initialization.
28135
+ */
28136
+ function snapshotPlatformSilentRequest(request) {
28137
+ return {
28138
+ ...request,
28139
+ scopes: [...(request.scopes || [])],
28140
+ account: { ...request.account },
28141
+ azureCloudOptions: request.azureCloudOptions
28142
+ ? { ...request.azureCloudOptions }
28143
+ : undefined,
28144
+ extraParameters: request.extraParameters
28145
+ ? { ...request.extraParameters }
28146
+ : undefined,
28147
+ extraQueryParameters: request.extraQueryParameters
28148
+ ? { ...request.extraQueryParameters }
28149
+ : undefined,
28150
+ extraParametersNoCache: request.extraParametersNoCache
28151
+ ? { ...request.extraParametersNoCache }
28152
+ : undefined,
28153
+ attributeTokens: request.attributeTokens
28154
+ ? [...request.attributeTokens]
28155
+ : undefined,
28156
+ storeInCache: request.storeInCache
28157
+ ? { ...request.storeInCache }
28158
+ : undefined,
28159
+ };
28160
+ }
28161
+ /**
28162
+ * Canonicalizes dictionary ordering while preserving exact parameter values.
28163
+ */
28164
+ function canonicalizeStringDict(values = {}) {
28165
+ return Object.keys(values)
28166
+ .sort()
28167
+ .map((key) => [key, values[key]]);
28168
+ }
28169
+
28170
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
27744
28171
 
27745
28172
  /*
27746
28173
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -27797,6 +28224,9 @@ class StandardController {
27797
28224
  this.hybridAuthCodeResponses = new Map();
27798
28225
  // Initialize performance client
27799
28226
  this.performanceClient = this.config.telemetry.client;
28227
+ this.performanceClient.addGlobalFields({
28228
+ allowPlatformBroker: this.config.system.allowPlatformBroker,
28229
+ });
27800
28230
  // Initialize environment-specific crypto and token-binding services.
27801
28231
  if (this.isBrowserEnvironment) {
27802
28232
  this.browserCrypto = new CryptoOps(this.logger, this.performanceClient);
@@ -28057,9 +28487,9 @@ class StandardController {
28057
28487
  enforceResourceParameter(this.config.auth.isMcp, request);
28058
28488
  this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Redirect, request);
28059
28489
  let result;
28060
- if (this.platformAuthProvider &&
28061
- this.canUsePlatformBroker(request)) {
28062
- const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
28490
+ const platformAuthProvider = this.platformAuthProvider;
28491
+ if (this.canUsePlatformBroker(request) && platformAuthProvider) {
28492
+ const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, platformAuthProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId, this.tokenBindingKeyManager);
28063
28493
  result = invokeAsync(nativeClient.acquireTokenRedirect.bind(nativeClient), NativeInteractionClientAcquireTokenRedirect, this.logger, this.performanceClient, correlationId)(request, atrMeasurement).catch((e) => {
28064
28494
  if (e instanceof NativeAuthError &&
28065
28495
  isFatalNativeAuthError(e)) {
@@ -28744,11 +29174,8 @@ class StandardController {
28744
29174
  canUsePlatformBroker(request, accountId) {
28745
29175
  const correlationId = this.getRequestCorrelationId(request);
28746
29176
  this.logger.trace("1n9lbl", correlationId);
28747
- if (!this.platformAuthProvider) {
28748
- this.logger.trace("0vnu11", correlationId);
28749
- return false;
28750
- }
28751
- if (!isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme)) {
29177
+ const platformAuthAllowed = isPlatformAuthAllowed(this.config, this.logger, correlationId, this.platformAuthProvider, request.authenticationScheme, this.performanceClient);
29178
+ if (!platformAuthAllowed) {
28752
29179
  this.logger.trace("0yoy1g", correlationId);
28753
29180
  return false;
28754
29181
  }
@@ -29012,21 +29439,23 @@ class StandardController {
29012
29439
  * @returns
29013
29440
  */
29014
29441
  async acquireTokenSilentDeduped(request, account, correlationId) {
29015
- const thumbprint = getRequestThumbprint(this.config.auth.clientId, {
29016
- ...request,
29017
- authority: request.authority || this.config.auth.authority}, account.homeAccountId);
29018
- const silentRequestKey = JSON.stringify(thumbprint);
29019
- const inProgressRequest = this.activeSilentTokenRequests.get(silentRequestKey);
29442
+ const preparedRequest = resolveSilentRequestPreparation({
29443
+ request,
29444
+ account,
29445
+ correlationId,
29446
+ config: this.config,
29447
+ }, this.platformAuthProvider, this.logger, this.performanceClient);
29448
+ const inProgressRequest = this.activeSilentTokenRequests.get(preparedRequest.key);
29020
29449
  if (typeof inProgressRequest === "undefined") {
29021
29450
  this.logger.verbose("0fcjbk", correlationId);
29022
29451
  this.performanceClient.addFields({ deduped: false }, correlationId);
29023
29452
  const activeRequest = invokeAsync(this.acquireTokenSilentAsync.bind(this), AcquireTokenSilentAsync, this.logger, this.performanceClient, correlationId)({
29024
- ...request,
29453
+ ...preparedRequest.request,
29025
29454
  correlationId,
29026
- }, account);
29027
- this.activeSilentTokenRequests.set(silentRequestKey, activeRequest);
29455
+ }, preparedRequest.account);
29456
+ this.activeSilentTokenRequests.set(preparedRequest.key, activeRequest);
29028
29457
  return activeRequest.finally(() => {
29029
- this.activeSilentTokenRequests.delete(silentRequestKey);
29458
+ this.activeSilentTokenRequests.delete(preparedRequest.key);
29030
29459
  });
29031
29460
  }
29032
29461
  else {
@@ -29140,7 +29569,7 @@ class StandardController {
29140
29569
  */
29141
29570
  async acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy) {
29142
29571
  // if the cache policy is set to access_token only, we should not be hitting the native layer yet
29143
- if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme) &&
29572
+ if (isPlatformAuthAllowed(this.config, this.logger, silentRequest.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme, this.performanceClient) &&
29144
29573
  silentRequest.account.nativeAccountId) {
29145
29574
  this.logger.verbose("0sczo4", silentRequest.correlationId);
29146
29575
  this.performanceClient.addFields({ isPlatformBrokerRequest: true }, silentRequest.correlationId);
@@ -29240,7 +29669,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
29240
29669
  return isSilentlyResolvable && tryIframeRenewal;
29241
29670
  }
29242
29671
 
29243
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
29672
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
29244
29673
 
29245
29674
  /*
29246
29675
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -29345,7 +29774,7 @@ class BaseOperatingContext {
29345
29774
  }
29346
29775
  }
29347
29776
 
29348
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
29777
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
29349
29778
 
29350
29779
  /*
29351
29780
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -29392,7 +29821,7 @@ StandardOperatingContext.MODULE_NAME = "";
29392
29821
  */
29393
29822
  StandardOperatingContext.ID = "StandardOperatingContext";
29394
29823
 
29395
- /*! @azure/msal-browser v5.23.0 2026-09-23 */
29824
+ /*! @azure/msal-browser v5.25.0 2026-10-06 */
29396
29825
 
29397
29826
  /*
29398
29827
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -30024,7 +30453,7 @@ const createClientLogCallback = (provider, metadata, scope) => {
30024
30453
  };
30025
30454
 
30026
30455
  // Generated by genversion.
30027
- const version = '12.0.0';
30456
+ const version = '12.0.1';
30028
30457
 
30029
30458
  /**
30030
30459
  * Zod schema for telemetry configuration validation.
@@ -32014,5 +32443,5 @@ const configureMsal = (configure) => ({
32014
32443
  configure,
32015
32444
  });
32016
32445
 
32017
- export { TelemetryEventSchema as $, reduce as A, lastValueFrom as B, filter as C, BaseModuleProvider as D, EMPTY_SUBSCRIPTION as E, catchError as F, of as G, object as H, _instanceof as I, _enum as J, string as K, boolean as L, ModuleEventLevel as M, record as N, Observable as O, union as P, __rest as Q, __assign as R, Subscription as S, switchMap as T, observeOn as U, deepmerge as V, BaseConfigBuilder as W, TelemetryExceptionSchema as X, TelemetryItemNames as Y, TelemetryType as Z, __extends as _, arrRemove as a, TelemetryMetricSchema as a0, TelemetryCustomEventSchema as a1, array as a2, TelemetryLevel as a3, enableMSAL as a4, MsalConfigurator as a5, module$1 as a6, __values as b, createErrorClass as c, __spreadArray as d, errorContext as e, __read as f, SafeSubscriber as g, EmptyError as h, isFunction as i, executeSchedule as j, innerFrom as k, createOperatorSubscriber as l, map as m, mergeMap as n, operate as o, identity as p, isArrayLike as q, isScheduler as r, popScheduler as s, popNumber as t, EMPTY as u, from as v, mergeInternals as w, scanInternals as x, noop as y, popResultSelector as z };
32018
- //# sourceMappingURL=module-DzjJ4gjy.js.map
32446
+ export { TelemetryEventSchema as $, reduce as A, lastValueFrom as B, filter as C, BaseModuleProvider as D, EMPTY_SUBSCRIPTION as E, catchError as F, of as G, object as H, _instanceof as I, _enum as J, string as K, boolean as L, ModuleEventLevel as M, record as N, Observable as O, union as P, __rest as Q, __assign as R, Subscription as S, switchMap as T, observeOn as U, deepmerge as V, BaseConfigBuilder as W, TelemetryExceptionSchema as X, TelemetryItemNames as Y, TelemetryType as Z, __extends as _, __values as a, TelemetryMetricSchema as a0, TelemetryCustomEventSchema as a1, array as a2, TelemetryLevel as a3, enableMSAL as a4, MsalConfigurator as a5, module$1 as a6, arrRemove as b, createErrorClass as c, __spreadArray as d, errorContext as e, __read as f, SafeSubscriber as g, EmptyError as h, isFunction as i, executeSchedule as j, innerFrom as k, createOperatorSubscriber as l, map as m, mergeMap as n, operate as o, identity as p, isArrayLike as q, isScheduler as r, popScheduler as s, popNumber as t, EMPTY as u, from as v, mergeInternals as w, scanInternals as x, noop as y, popResultSelector as z };
32447
+ //# sourceMappingURL=module-BR47HvRl.js.map