@azure/msal-browser 3.0.0-beta.0 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/app/IPublicClientApplication.d.ts +2 -1
  2. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  3. package/dist/app/IPublicClientApplication.js +1 -1
  4. package/dist/app/PublicClientApplication.d.ts +2 -1
  5. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.js +1 -1
  7. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  8. package/dist/cache/AsyncMemoryStorage.js +1 -1
  9. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  10. package/dist/cache/BrowserCacheManager.js +2 -1
  11. package/dist/cache/BrowserCacheManager.js.map +1 -1
  12. package/dist/cache/BrowserStorage.js +1 -1
  13. package/dist/cache/CryptoKeyStore.js +1 -1
  14. package/dist/cache/DatabaseStorage.js +1 -1
  15. package/dist/cache/ITokenCache.d.ts +2 -1
  16. package/dist/cache/ITokenCache.d.ts.map +1 -1
  17. package/dist/cache/MemoryStorage.js +1 -1
  18. package/dist/cache/TokenCache.d.ts +2 -1
  19. package/dist/cache/TokenCache.d.ts.map +1 -1
  20. package/dist/cache/TokenCache.js +4 -5
  21. package/dist/cache/TokenCache.js.map +1 -1
  22. package/dist/cache/entities/CacheRecord.d.ts +6 -0
  23. package/dist/cache/entities/CacheRecord.d.ts.map +1 -0
  24. package/dist/cache/entities/CacheRecord.js +17 -0
  25. package/dist/cache/entities/CacheRecord.js.map +1 -0
  26. package/dist/config/Configuration.d.ts +4 -0
  27. package/dist/config/Configuration.d.ts.map +1 -1
  28. package/dist/config/Configuration.js +3 -2
  29. package/dist/config/Configuration.js.map +1 -1
  30. package/dist/controllers/ControllerFactory.js +1 -1
  31. package/dist/controllers/IController.d.ts +2 -1
  32. package/dist/controllers/IController.d.ts.map +1 -1
  33. package/dist/controllers/StandardController.d.ts +2 -1
  34. package/dist/controllers/StandardController.d.ts.map +1 -1
  35. package/dist/controllers/StandardController.js +2 -1
  36. package/dist/controllers/StandardController.js.map +1 -1
  37. package/dist/crypto/BrowserCrypto.js +1 -1
  38. package/dist/crypto/CryptoOps.js +2 -2
  39. package/dist/crypto/CryptoOps.js.map +1 -1
  40. package/dist/crypto/GuidGenerator.js +1 -1
  41. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  42. package/dist/crypto/PkceGenerator.js +1 -1
  43. package/dist/crypto/SignedHttpRequest.js +1 -1
  44. package/dist/encode/Base64Decode.js +1 -1
  45. package/dist/encode/Base64Encode.js +1 -1
  46. package/dist/error/BrowserAuthError.js +1 -1
  47. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  48. package/dist/error/NativeAuthError.js +1 -1
  49. package/dist/event/EventHandler.js +1 -1
  50. package/dist/event/EventMessage.d.ts +2 -2
  51. package/dist/event/EventMessage.d.ts.map +1 -1
  52. package/dist/event/EventMessage.js +1 -1
  53. package/dist/event/EventType.js +1 -1
  54. package/dist/index.d.ts +2 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +2 -2
  57. package/dist/interaction_client/BaseInteractionClient.d.ts +2 -1
  58. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  59. package/dist/interaction_client/BaseInteractionClient.js +6 -3
  60. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  61. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  62. package/dist/interaction_client/NativeInteractionClient.d.ts +2 -1
  63. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  64. package/dist/interaction_client/NativeInteractionClient.js +3 -2
  65. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  66. package/dist/interaction_client/PopupClient.d.ts +2 -1
  67. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  68. package/dist/interaction_client/PopupClient.js +1 -1
  69. package/dist/interaction_client/RedirectClient.d.ts +2 -1
  70. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  71. package/dist/interaction_client/RedirectClient.js +1 -1
  72. package/dist/interaction_client/SilentAuthCodeClient.d.ts +2 -1
  73. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  74. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  75. package/dist/interaction_client/SilentCacheClient.d.ts +2 -1
  76. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  77. package/dist/interaction_client/SilentCacheClient.js +1 -1
  78. package/dist/interaction_client/SilentCacheClient.js.map +1 -1
  79. package/dist/interaction_client/SilentIframeClient.d.ts +2 -1
  80. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
  81. package/dist/interaction_client/SilentIframeClient.js +1 -1
  82. package/dist/interaction_client/SilentRefreshClient.d.ts +2 -1
  83. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  84. package/dist/interaction_client/SilentRefreshClient.js +2 -1
  85. package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
  86. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  87. package/dist/interaction_client/StandardInteractionClient.js +4 -1
  88. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  89. package/dist/interaction_handler/InteractionHandler.d.ts +2 -1
  90. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  91. package/dist/interaction_handler/InteractionHandler.js +1 -1
  92. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  93. package/dist/interaction_handler/RedirectHandler.d.ts +2 -1
  94. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  95. package/dist/interaction_handler/RedirectHandler.js +1 -1
  96. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  97. package/dist/interaction_handler/SilentHandler.js +1 -1
  98. package/dist/internals.d.ts +1 -0
  99. package/dist/internals.d.ts.map +1 -1
  100. package/dist/internals.js +2 -1
  101. package/dist/internals.js.map +1 -1
  102. package/dist/navigation/NavigationClient.js +1 -1
  103. package/dist/network/FetchClient.js +1 -1
  104. package/dist/network/XhrClient.js +1 -1
  105. package/dist/operatingcontext/BaseOperatingContext.js +1 -1
  106. package/dist/operatingcontext/StandardOperatingContext.js +1 -1
  107. package/dist/operatingcontext/TeamsAppOperatingContext.js +1 -1
  108. package/dist/packageMetadata.d.ts +1 -1
  109. package/dist/packageMetadata.js +2 -2
  110. package/dist/response/AuthenticationResult.d.ts +5 -0
  111. package/dist/response/AuthenticationResult.d.ts.map +1 -0
  112. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  113. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  114. package/dist/utils/BrowserConstants.js +1 -1
  115. package/dist/utils/BrowserProtocolUtils.js +1 -1
  116. package/dist/utils/BrowserStringUtils.d.ts +0 -5
  117. package/dist/utils/BrowserStringUtils.d.ts.map +1 -1
  118. package/dist/utils/BrowserStringUtils.js +1 -13
  119. package/dist/utils/BrowserStringUtils.js.map +1 -1
  120. package/dist/utils/BrowserUtils.js +1 -1
  121. package/dist/utils/MathUtils.js +1 -1
  122. package/lib/msal-browser.cjs.js +117 -110
  123. package/lib/msal-browser.cjs.js.map +1 -1
  124. package/lib/msal-browser.js +117 -110
  125. package/lib/msal-browser.js.map +1 -1
  126. package/lib/msal-browser.min.js +62 -62
  127. package/package.json +6 -9
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v3.0.0-beta.0 2023-06-19 */
1
+ /*! @azure/msal-browser v3.0.0-beta.1 2023-07-06 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -356,7 +356,7 @@ const JsonTypes = {
356
356
  Pop: "pop",
357
357
  };
358
358
 
359
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
359
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
360
360
 
361
361
  /*
362
362
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -410,7 +410,7 @@ class AuthError extends Error {
410
410
  }
411
411
  }
412
412
 
413
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
413
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
414
414
 
415
415
  /*
416
416
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -455,7 +455,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
455
455
  },
456
456
  };
457
457
 
458
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
458
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
459
459
 
460
460
  /*
461
461
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -977,7 +977,7 @@ class ClientAuthError extends AuthError {
977
977
  }
978
978
  }
979
979
 
980
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
980
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
981
981
 
982
982
  /*
983
983
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1104,7 +1104,7 @@ class StringUtils {
1104
1104
  }
1105
1105
  }
1106
1106
 
1107
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1107
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1108
1108
 
1109
1109
  /*
1110
1110
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1304,12 +1304,12 @@ class Logger {
1304
1304
  }
1305
1305
  }
1306
1306
 
1307
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1307
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1308
1308
  /* eslint-disable header/header */
1309
1309
  const name$1 = "@azure/msal-common";
1310
- const version$1 = "14.0.0-beta.0";
1310
+ const version$1 = "14.0.0-beta.1";
1311
1311
 
1312
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1312
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1313
1313
  /*
1314
1314
  * Copyright (c) Microsoft Corporation. All rights reserved.
1315
1315
  * Licensed under the MIT License.
@@ -1329,7 +1329,7 @@ const AzureCloudInstance = {
1329
1329
  AzureUsGovernment: "https://login.microsoftonline.us",
1330
1330
  };
1331
1331
 
1332
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1332
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1333
1333
 
1334
1334
  /*
1335
1335
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1591,7 +1591,7 @@ class ClientConfigurationError extends ClientAuthError {
1591
1591
  }
1592
1592
  }
1593
1593
 
1594
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1594
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1595
1595
 
1596
1596
  /*
1597
1597
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1791,7 +1791,7 @@ class ScopeSet {
1791
1791
  }
1792
1792
  }
1793
1793
 
1794
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1794
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1795
1795
 
1796
1796
  /*
1797
1797
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1831,7 +1831,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
1831
1831
  };
1832
1832
  }
1833
1833
 
1834
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1834
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1835
1835
  /*
1836
1836
  * Copyright (c) Microsoft Corporation. All rights reserved.
1837
1837
  * Licensed under the MIT License.
@@ -1846,7 +1846,7 @@ const AuthorityType = {
1846
1846
  Ciam: 3
1847
1847
  };
1848
1848
 
1849
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
1849
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
1850
1850
 
1851
1851
  /*
1852
1852
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2097,7 +2097,7 @@ class AccountEntity {
2097
2097
  }
2098
2098
  }
2099
2099
 
2100
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
2100
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
2101
2101
 
2102
2102
  /*
2103
2103
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2148,7 +2148,7 @@ class AuthToken {
2148
2148
  }
2149
2149
  }
2150
2150
 
2151
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
2151
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
2152
2152
 
2153
2153
  /*
2154
2154
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3162,7 +3162,7 @@ class DefaultStorageClass extends CacheManager {
3162
3162
  }
3163
3163
  }
3164
3164
 
3165
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3165
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3166
3166
 
3167
3167
  /*
3168
3168
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3182,6 +3182,9 @@ const DEFAULT_LOGGER_IMPLEMENTATION = {
3182
3182
  logLevel: exports.LogLevel.Info,
3183
3183
  correlationId: Constants.EMPTY_STRING,
3184
3184
  };
3185
+ const DEFAULT_CACHE_OPTIONS = {
3186
+ claimsBasedCachingEnabled: false,
3187
+ };
3185
3188
  const DEFAULT_NETWORK_IMPLEMENTATION = {
3186
3189
  async sendGetRequestAsync() {
3187
3190
  const notImplErr = "Network interface - sendGetRequestAsync() has not been implemented";
@@ -3219,7 +3222,7 @@ const DEFAULT_TELEMETRY_OPTIONS = {
3219
3222
  *
3220
3223
  * @returns Configuration
3221
3224
  */
3222
- function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
3225
+ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, cacheOptions: userCacheOptions, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
3223
3226
  const loggerOptions = {
3224
3227
  ...DEFAULT_LOGGER_IMPLEMENTATION,
3225
3228
  ...userLoggerOption,
@@ -3228,6 +3231,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
3228
3231
  authOptions: buildAuthOptions(userAuthOptions),
3229
3232
  systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
3230
3233
  loggerOptions: loggerOptions,
3234
+ cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
3231
3235
  storageInterface: storageImplementation ||
3232
3236
  new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
3233
3237
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
@@ -3253,7 +3257,7 @@ function buildAuthOptions(authOptions) {
3253
3257
  };
3254
3258
  }
3255
3259
 
3256
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3260
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3257
3261
 
3258
3262
  /*
3259
3263
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3270,7 +3274,7 @@ class ServerError extends AuthError {
3270
3274
  }
3271
3275
  }
3272
3276
 
3273
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3277
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3274
3278
 
3275
3279
  /*
3276
3280
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3367,7 +3371,7 @@ class ThrottlingUtils {
3367
3371
  }
3368
3372
  }
3369
3373
 
3370
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3374
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3371
3375
 
3372
3376
  /*
3373
3377
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3403,7 +3407,7 @@ class NetworkManager {
3403
3407
  }
3404
3408
  }
3405
3409
 
3406
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3410
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3407
3411
  /*
3408
3412
  * Copyright (c) Microsoft Corporation. All rights reserved.
3409
3413
  * Licensed under the MIT License.
@@ -3413,7 +3417,7 @@ const CcsCredentialType = {
3413
3417
  UPN: "UPN",
3414
3418
  };
3415
3419
 
3416
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3420
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3417
3421
 
3418
3422
  /*
3419
3423
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3498,7 +3502,7 @@ class RequestValidator {
3498
3502
  }
3499
3503
  }
3500
3504
 
3501
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3505
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3502
3506
 
3503
3507
  /*
3504
3508
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3875,7 +3879,7 @@ class RequestParameterBuilder {
3875
3879
  }
3876
3880
  }
3877
3881
 
3878
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3882
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3879
3883
 
3880
3884
  /*
3881
3885
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3970,7 +3974,7 @@ class BaseClient {
3970
3974
  }
3971
3975
  }
3972
3976
 
3973
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
3977
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
3974
3978
 
3975
3979
  /*
3976
3980
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4109,7 +4113,7 @@ class CredentialEntity {
4109
4113
  }
4110
4114
  }
4111
4115
 
4112
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4116
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4113
4117
 
4114
4118
  /*
4115
4119
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4168,7 +4172,7 @@ class IdTokenEntity extends CredentialEntity {
4168
4172
  }
4169
4173
  }
4170
4174
 
4171
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4175
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4172
4176
  /*
4173
4177
  * Copyright (c) Microsoft Corporation. All rights reserved.
4174
4178
  * Licensed under the MIT License.
@@ -4215,7 +4219,7 @@ class TimeUtils {
4215
4219
  }
4216
4220
  }
4217
4221
 
4218
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4222
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4219
4223
 
4220
4224
  /*
4221
4225
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4329,7 +4333,7 @@ class AccessTokenEntity extends CredentialEntity {
4329
4333
  }
4330
4334
  }
4331
4335
 
4332
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4336
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4333
4337
 
4334
4338
  /*
4335
4339
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4391,7 +4395,7 @@ class RefreshTokenEntity extends CredentialEntity {
4391
4395
  }
4392
4396
  }
4393
4397
 
4394
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4398
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4395
4399
 
4396
4400
  /*
4397
4401
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4472,12 +4476,12 @@ class InteractionRequiredAuthError extends AuthError {
4472
4476
  }
4473
4477
  }
4474
4478
 
4475
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4479
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4476
4480
  /*
4477
4481
  * Copyright (c) Microsoft Corporation. All rights reserved.
4478
4482
  * Licensed under the MIT License.
4479
4483
  */
4480
- class CacheRecord {
4484
+ let CacheRecord$1 = class CacheRecord {
4481
4485
  constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
4482
4486
  this.account = accountEntity || null;
4483
4487
  this.idToken = idTokenEntity || null;
@@ -4485,9 +4489,9 @@ class CacheRecord {
4485
4489
  this.refreshToken = refreshTokenEntity || null;
4486
4490
  this.appMetadata = appMetadataEntity || null;
4487
4491
  }
4488
- }
4492
+ };
4489
4493
 
4490
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4494
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4491
4495
 
4492
4496
  /*
4493
4497
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4561,7 +4565,7 @@ class ProtocolUtils {
4561
4565
  }
4562
4566
  }
4563
4567
 
4564
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4568
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4565
4569
 
4566
4570
  /*
4567
4571
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4806,7 +4810,7 @@ class UrlString {
4806
4810
  }
4807
4811
  }
4808
4812
 
4809
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
4813
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
4810
4814
  /*
4811
4815
  * Copyright (c) Microsoft Corporation. All rights reserved.
4812
4816
  * Licensed under the MIT License.
@@ -5033,7 +5037,7 @@ const IntFields = new Set([
5033
5037
  "status",
5034
5038
  ]);
5035
5039
 
5036
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5040
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5037
5041
 
5038
5042
  /*
5039
5043
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5118,7 +5122,7 @@ class PopTokenGenerator {
5118
5122
  }
5119
5123
  }
5120
5124
 
5121
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5125
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5122
5126
 
5123
5127
  /*
5124
5128
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5187,7 +5191,7 @@ class AppMetadataEntity {
5187
5191
  }
5188
5192
  }
5189
5193
 
5190
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5194
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5191
5195
  /*
5192
5196
  * Copyright (c) Microsoft Corporation. All rights reserved.
5193
5197
  * Licensed under the MIT License.
@@ -5214,7 +5218,7 @@ class AppMetadataEntity {
5214
5218
  }
5215
5219
  }
5216
5220
 
5217
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5221
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5218
5222
 
5219
5223
  /*
5220
5224
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5410,7 +5414,7 @@ class ResponseHandler {
5410
5414
  if (!StringUtils.isEmpty(serverTokenResponse.foci)) {
5411
5415
  cachedAppMetadata = AppMetadataEntity.createAppMetadataEntity(this.clientId, env, serverTokenResponse.foci);
5412
5416
  }
5413
- return new CacheRecord(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);
5417
+ return new CacheRecord$1(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);
5414
5418
  }
5415
5419
  /**
5416
5420
  * Generate Account
@@ -5517,7 +5521,7 @@ class ResponseHandler {
5517
5521
  }
5518
5522
  }
5519
5523
 
5520
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5524
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5521
5525
 
5522
5526
  /*
5523
5527
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5953,7 +5957,7 @@ class AuthorizationCodeClient extends BaseClient {
5953
5957
  }
5954
5958
  }
5955
5959
 
5956
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
5960
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
5957
5961
 
5958
5962
  /*
5959
5963
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6195,7 +6199,7 @@ class RefreshTokenClient extends BaseClient {
6195
6199
  }
6196
6200
  }
6197
6201
 
6198
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
6202
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
6199
6203
 
6200
6204
  /*
6201
6205
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6240,6 +6244,12 @@ class SilentFlowClient extends BaseClient {
6240
6244
  this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.");
6241
6245
  throw ClientAuthError.createRefreshRequiredError();
6242
6246
  }
6247
+ else if (!this.config.cacheOptions.claimsBasedCachingEnabled &&
6248
+ !StringUtils.isEmptyObj(request.claims)) {
6249
+ // Must refresh due to request parameters.
6250
+ this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested.");
6251
+ throw ClientAuthError.createRefreshRequiredError();
6252
+ }
6243
6253
  // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
6244
6254
  if (!request.account) {
6245
6255
  throw ClientAuthError.createNoAccountInSilentRequestError();
@@ -6292,7 +6302,7 @@ class SilentFlowClient extends BaseClient {
6292
6302
  }
6293
6303
  }
6294
6304
 
6295
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
6305
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
6296
6306
  /*
6297
6307
  * Copyright (c) Microsoft Corporation. All rights reserved.
6298
6308
  * Licensed under the MIT License.
@@ -6304,7 +6314,7 @@ function isOpenIdConfigResponse(response) {
6304
6314
  response.hasOwnProperty("jwks_uri"));
6305
6315
  }
6306
6316
 
6307
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
6317
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
6308
6318
  /*
6309
6319
  * Copyright (c) Microsoft Corporation. All rights reserved.
6310
6320
  * Licensed under the MIT License.
@@ -7182,7 +7192,7 @@ const rawMetdataJSON = {
7182
7192
  const EndpointMetadata = rawMetdataJSON.endpointMetadata;
7183
7193
  const InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
7184
7194
 
7185
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7195
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7186
7196
  /*
7187
7197
  * Copyright (c) Microsoft Corporation. All rights reserved.
7188
7198
  * Licensed under the MIT License.
@@ -7195,7 +7205,7 @@ const ProtocolMode = {
7195
7205
  OIDC: "OIDC",
7196
7206
  };
7197
7207
 
7198
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7208
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7199
7209
 
7200
7210
  /*
7201
7211
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7275,7 +7285,7 @@ class AuthorityMetadataEntity {
7275
7285
  }
7276
7286
  }
7277
7287
 
7278
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7288
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7279
7289
  /*
7280
7290
  * Copyright (c) Microsoft Corporation. All rights reserved.
7281
7291
  * Licensed under the MIT License.
@@ -7285,7 +7295,7 @@ function isCloudInstanceDiscoveryResponse(response) {
7285
7295
  response.hasOwnProperty("metadata"));
7286
7296
  }
7287
7297
 
7288
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7298
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7289
7299
  /*
7290
7300
  * Copyright (c) Microsoft Corporation. All rights reserved.
7291
7301
  * Licensed under the MIT License.
@@ -7295,7 +7305,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
7295
7305
  response.hasOwnProperty("error_description"));
7296
7306
  }
7297
7307
 
7298
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7308
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7299
7309
 
7300
7310
  /*
7301
7311
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7406,7 +7416,7 @@ RegionDiscovery.IMDS_OPTIONS = {
7406
7416
  },
7407
7417
  };
7408
7418
 
7409
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
7419
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
7410
7420
 
7411
7421
  /*
7412
7422
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7778,37 +7788,25 @@ class Authority {
7778
7788
  }
7779
7789
  /**
7780
7790
  * Update the retrieved metadata with regional information.
7791
+ * User selected Azure region will be used if configured.
7781
7792
  */
7782
7793
  async updateMetadataWithRegionalInformation(metadata) {
7783
7794
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
7784
- this.performanceClient?.setPreQueueTime(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
7785
- const autodetectedRegionName = await this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration?.environmentRegion, this.regionDiscoveryMetadata);
7786
- const azureRegion = this.authorityOptions.azureRegionConfiguration?.azureRegion ===
7787
- Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
7788
- ? autodetectedRegionName
7789
- : this.authorityOptions.azureRegionConfiguration?.azureRegion;
7790
- if (this.authorityOptions.azureRegionConfiguration?.azureRegion ===
7791
- Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
7792
- this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName
7793
- ? RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL
7794
- : RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
7795
- }
7796
- else {
7795
+ const userConfiguredAzureRegion = this.authorityOptions.azureRegionConfiguration?.azureRegion;
7796
+ if (userConfiguredAzureRegion) {
7797
+ if (userConfiguredAzureRegion !== Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
7798
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
7799
+ this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion;
7800
+ return Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion);
7801
+ }
7802
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
7803
+ const autodetectedRegionName = await this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration?.environmentRegion, this.regionDiscoveryMetadata);
7797
7804
  if (autodetectedRegionName) {
7798
- this.regionDiscoveryMetadata.region_outcome =
7799
- this.authorityOptions.azureRegionConfiguration
7800
- ?.azureRegion === autodetectedRegionName
7801
- ? RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED
7802
- : RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
7805
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL;
7806
+ this.regionDiscoveryMetadata.region_used = autodetectedRegionName;
7807
+ return Authority.replaceWithRegionalInformation(metadata, autodetectedRegionName);
7803
7808
  }
7804
- else {
7805
- this.regionDiscoveryMetadata.region_outcome =
7806
- RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
7807
- }
7808
- }
7809
- if (azureRegion) {
7810
- this.regionDiscoveryMetadata.region_used = azureRegion;
7811
- return Authority.replaceWithRegionalInformation(metadata, azureRegion);
7809
+ this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
7812
7810
  }
7813
7811
  return metadata;
7814
7812
  }
@@ -8124,7 +8122,7 @@ Authority.reservedTenantDomains = (new Set([
8124
8122
  AADAuthorityConstants.ORGANIZATIONS
8125
8123
  ]));
8126
8124
 
8127
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8125
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8128
8126
 
8129
8127
  /*
8130
8128
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8174,7 +8172,7 @@ class AuthorityFactory {
8174
8172
  }
8175
8173
  }
8176
8174
 
8177
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8175
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8178
8176
 
8179
8177
  /*
8180
8178
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8204,7 +8202,7 @@ class ServerTelemetryEntity {
8204
8202
  }
8205
8203
  }
8206
8204
 
8207
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8205
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8208
8206
 
8209
8207
  /*
8210
8208
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8230,7 +8228,7 @@ class ThrottlingEntity {
8230
8228
  }
8231
8229
  }
8232
8230
 
8233
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8231
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8234
8232
 
8235
8233
  /*
8236
8234
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8247,7 +8245,7 @@ const StubbedNetworkModule = {
8247
8245
  },
8248
8246
  };
8249
8247
 
8250
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8248
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8251
8249
 
8252
8250
  /*
8253
8251
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8289,7 +8287,7 @@ class JoseHeaderError extends AuthError {
8289
8287
  }
8290
8288
  }
8291
8289
 
8292
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8290
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8293
8291
 
8294
8292
  /*
8295
8293
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8328,7 +8326,7 @@ class JoseHeader {
8328
8326
  }
8329
8327
  }
8330
8328
 
8331
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8329
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8332
8330
 
8333
8331
  /*
8334
8332
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8386,7 +8384,7 @@ class AuthenticationHeaderParser {
8386
8384
  }
8387
8385
  }
8388
8386
 
8389
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8387
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8390
8388
 
8391
8389
  /*
8392
8390
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8585,7 +8583,7 @@ class ServerTelemetryManager {
8585
8583
  }
8586
8584
  }
8587
8585
 
8588
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8586
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8589
8587
 
8590
8588
  /*
8591
8589
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8994,7 +8992,7 @@ class PerformanceClient {
8994
8992
  }
8995
8993
  }
8996
8994
 
8997
- /*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
8995
+ /*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
8998
8996
 
8999
8997
  /*
9000
8998
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11181,13 +11179,25 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger) => {
11181
11179
  storeAuthStateInCookie: false,
11182
11180
  secureCookies: false,
11183
11181
  cacheMigrationEnabled: false,
11182
+ claimsBasedCachingEnabled: false,
11184
11183
  };
11185
11184
  return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger);
11186
11185
  };
11187
11186
 
11187
+ /*
11188
+ * Copyright (c) Microsoft Corporation. All rights reserved.
11189
+ * Licensed under the MIT License.
11190
+ */
11191
+ class CacheRecord extends CacheRecord$1 {
11192
+ constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
11193
+ super(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity);
11194
+ this.account = accountEntity;
11195
+ }
11196
+ }
11197
+
11188
11198
  /* eslint-disable header/header */
11189
11199
  const name = "@azure/msal-browser";
11190
- const version = "3.0.0-beta.0";
11200
+ const version = "3.0.0-beta.1";
11191
11201
 
11192
11202
  /*
11193
11203
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11627,8 +11637,11 @@ class BaseInteractionClient {
11627
11637
  }
11628
11638
  this.logger.verbose(`Authentication Scheme set to "${validatedRequest.authenticationScheme}" as configured in Auth request`);
11629
11639
  }
11630
- // Set requested claims hash if claims were requested
11631
- if (request.claims && !StringUtils.isEmpty(request.claims)) {
11640
+ // Set requested claims hash if claims-based caching is enabled and claims were requested
11641
+ if (this.config.cache.claimsBasedCachingEnabled &&
11642
+ request.claims &&
11643
+ // Checks for empty stringified object "{}" which doesn't qualify as requested claims
11644
+ !StringUtils.isEmptyObj(request.claims)) {
11632
11645
  validatedRequest.requestedClaimsHash =
11633
11646
  await this.browserCrypto.hashString(request.claims);
11634
11647
  }
@@ -11848,6 +11861,9 @@ class StandardInteractionClient extends BaseInteractionClient {
11848
11861
  logLevel: logger.logLevel,
11849
11862
  correlationId: this.correlationId,
11850
11863
  },
11864
+ cacheOptions: {
11865
+ claimsBasedCachingEnabled: this.config.cache.claimsBasedCachingEnabled,
11866
+ },
11851
11867
  cryptoInterface: this.browserCrypto,
11852
11868
  networkInterface: this.networkClient,
11853
11869
  storageInterface: this.browserStorage,
@@ -14034,6 +14050,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
14034
14050
  userInputCache.cacheLocation === BrowserCacheLocation.LocalStorage
14035
14051
  ? true
14036
14052
  : false,
14053
+ claimsBasedCachingEnabled: false,
14037
14054
  };
14038
14055
  // Default logger options for browser
14039
14056
  const DEFAULT_LOGGER_OPTIONS = {
@@ -14063,7 +14080,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
14063
14080
  allowNativeBroker: true,
14064
14081
  nativeBrokerHandshakeTimeout: userInputSystem?.nativeBrokerHandshakeTimeout ||
14065
14082
  DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS,
14066
- pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS
14083
+ pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS,
14067
14084
  };
14068
14085
  const providedSystemOptions = {
14069
14086
  ...userInputSystem,
@@ -14399,6 +14416,7 @@ class SilentRefreshClient extends StandardInteractionClient {
14399
14416
  this.performanceClient.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
14400
14417
  return refreshTokenClient
14401
14418
  .acquireTokenByRefreshToken(silentRequest)
14419
+ .then((result) => result)
14402
14420
  .then((result) => {
14403
14421
  acquireTokenMeasurement.endMeasurement({
14404
14422
  success: true,
@@ -14756,18 +14774,6 @@ class BrowserStringUtils {
14756
14774
  }
14757
14775
  return aBytes;
14758
14776
  }
14759
- /**
14760
- * Converst string to ArrayBuffer
14761
- * @param dataString
14762
- */
14763
- static stringToArrayBuffer(dataString) {
14764
- const data = new ArrayBuffer(dataString.length);
14765
- const dataView = new Uint8Array(data);
14766
- for (let i = 0; i < dataString.length; i++) {
14767
- dataView[i] = dataString.charCodeAt(i);
14768
- }
14769
- return data;
14770
- }
14771
14777
  /**
14772
14778
  * Converts Uint8Array to a string
14773
14779
  * @param aBytes
@@ -15651,7 +15657,7 @@ class CryptoOps {
15651
15657
  // Form token string
15652
15658
  const tokenString = `${encodedShrHeader}.${encodedPayload}`;
15653
15659
  // Sign token
15654
- const tokenBuffer = BrowserStringUtils.stringToArrayBuffer(tokenString);
15660
+ const tokenBuffer = BrowserStringUtils.stringToUtf8Arr(tokenString);
15655
15661
  const signatureBuffer = await this.browserCrypto.sign(cachedKeyPair.privateKey, tokenBuffer);
15656
15662
  const encodedSignature = this.b64Encode.urlEncodeArr(new Uint8Array(signatureBuffer));
15657
15663
  const signedJwt = `${tokenString}.${encodedSignature}`;
@@ -15904,6 +15910,7 @@ var internals = /*#__PURE__*/Object.freeze({
15904
15910
  BrowserConstants: BrowserConstants,
15905
15911
  BrowserPerformanceClient: BrowserPerformanceClient,
15906
15912
  BrowserPerformanceMeasurement: BrowserPerformanceMeasurement,
15913
+ CacheRecord: CacheRecord,
15907
15914
  CryptoOps: CryptoOps,
15908
15915
  EventHandler: EventHandler,
15909
15916
  NativeAuthError: NativeAuthError,
@@ -16292,9 +16299,7 @@ class TokenCache {
16292
16299
  uniqueId: uid,
16293
16300
  tenantId: tid,
16294
16301
  scopes: responseScopes,
16295
- account: cacheRecord?.account
16296
- ? cacheRecord.account.getAccountInfo()
16297
- : null,
16302
+ account: cacheRecord.account.getAccountInfo(),
16298
16303
  idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,
16299
16304
  idTokenClaims: idTokenObj ? idTokenObj.claims : {},
16300
16305
  accessToken: accessToken,
@@ -16453,6 +16458,7 @@ class StandardController {
16453
16458
  storeAuthStateInCookie: false,
16454
16459
  secureCookies: false,
16455
16460
  cacheMigrationEnabled: false,
16461
+ claimsBasedCachingEnabled: false,
16456
16462
  };
16457
16463
  this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger);
16458
16464
  // Initialize the token cache
@@ -18214,6 +18220,7 @@ exports.Logger = Logger;
18214
18220
  exports.NavigationClient = NavigationClient;
18215
18221
  exports.OIDC_DEFAULT_SCOPES = OIDC_DEFAULT_SCOPES;
18216
18222
  exports.PerformanceEvents = PerformanceEvents;
18223
+ exports.PromptValue = PromptValue;
18217
18224
  exports.ProtocolMode = ProtocolMode;
18218
18225
  exports.PublicClientApplication = PublicClientApplication;
18219
18226
  exports.ServerError = ServerError;