@azure/msal-browser 5.0.0-beta.0 → 5.0.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 (411) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/cache/AccountManager.mjs +1 -1
  8. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  9. package/dist/cache/BrowserCacheManager.mjs +1 -1
  10. package/dist/cache/CacheHelpers.mjs +1 -1
  11. package/dist/cache/CacheKeys.mjs +1 -1
  12. package/dist/cache/CookieStorage.mjs +1 -1
  13. package/dist/cache/DatabaseStorage.mjs +1 -1
  14. package/dist/cache/EncryptedData.mjs +1 -1
  15. package/dist/cache/LocalStorage.mjs +1 -1
  16. package/dist/cache/MemoryStorage.mjs +1 -1
  17. package/dist/cache/SessionStorage.mjs +1 -1
  18. package/dist/cache/TokenCache.d.ts +7 -5
  19. package/dist/cache/TokenCache.d.ts.map +1 -1
  20. package/dist/cache/TokenCache.mjs +44 -32
  21. package/dist/cache/TokenCache.mjs.map +1 -1
  22. package/dist/config/Configuration.mjs +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  24. package/dist/controllers/StandardController.mjs +1 -1
  25. package/dist/crypto/BrowserCrypto.mjs +1 -1
  26. package/dist/crypto/CryptoOps.mjs +1 -1
  27. package/dist/crypto/PkceGenerator.mjs +1 -1
  28. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  29. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  30. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  31. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  32. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  34. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  35. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  36. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  37. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  38. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  39. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  40. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  41. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  42. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  43. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  44. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/TokenCache.d.ts +7 -5
  46. package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -1
  47. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  48. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  49. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  50. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  51. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  52. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  53. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  54. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  55. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  56. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  57. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  58. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  59. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  60. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  61. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  99. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  101. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  103. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  104. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  149. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  151. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  159. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  160. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  161. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  162. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  163. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  164. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  165. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  166. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  167. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  168. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  169. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  170. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  171. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  172. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  173. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  174. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  175. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  176. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  177. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  178. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  179. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  180. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  181. package/dist/custom-auth-path/log-strings-mapping.json +2 -2
  182. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  183. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  184. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  185. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  186. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  187. package/dist/custom-auth-path/packageMetadata.d.ts.map +1 -1
  188. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  189. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  190. package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts +18 -0
  191. package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts.map +1 -1
  192. package/dist/custom-auth-path/request/ClearCacheRequest.d.ts +6 -2
  193. package/dist/custom-auth-path/request/ClearCacheRequest.d.ts.map +1 -1
  194. package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts +12 -9
  195. package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts.map +1 -1
  196. package/dist/custom-auth-path/request/EndSessionRequest.d.ts +3 -6
  197. package/dist/custom-auth-path/request/EndSessionRequest.d.ts.map +1 -1
  198. package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts +3 -2
  199. package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts.map +1 -1
  200. package/dist/custom-auth-path/request/PopupRequest.d.ts +12 -24
  201. package/dist/custom-auth-path/request/PopupRequest.d.ts.map +1 -1
  202. package/dist/custom-auth-path/request/RedirectRequest.d.ts +6 -22
  203. package/dist/custom-auth-path/request/RedirectRequest.d.ts.map +1 -1
  204. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  205. package/dist/custom-auth-path/request/SilentRequest.d.ts +33 -13
  206. package/dist/custom-auth-path/request/SilentRequest.d.ts.map +1 -1
  207. package/dist/custom-auth-path/request/SsoSilentRequest.d.ts +0 -21
  208. package/dist/custom-auth-path/request/SsoSilentRequest.d.ts.map +1 -1
  209. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  210. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  211. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  212. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +1 -1
  213. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  214. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  215. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  216. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  217. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  218. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  219. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  220. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  221. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  222. package/dist/encode/Base64Decode.mjs +1 -1
  223. package/dist/encode/Base64Encode.mjs +1 -1
  224. package/dist/error/BrowserAuthError.mjs +1 -1
  225. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  226. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  227. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  228. package/dist/error/NativeAuthError.mjs +1 -1
  229. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  230. package/dist/error/NestedAppAuthError.mjs +1 -1
  231. package/dist/event/EventHandler.mjs +1 -1
  232. package/dist/event/EventMessage.mjs +1 -1
  233. package/dist/event/EventType.mjs +1 -1
  234. package/dist/index.mjs +1 -1
  235. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  236. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  237. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  238. package/dist/interaction_client/PopupClient.mjs +1 -1
  239. package/dist/interaction_client/RedirectClient.mjs +1 -1
  240. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  241. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  242. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  243. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  244. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  245. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  246. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  247. package/dist/log-strings-mapping.json +2 -2
  248. package/dist/naa/BridgeError.mjs +1 -1
  249. package/dist/naa/BridgeProxy.mjs +1 -1
  250. package/dist/naa/BridgeStatusCode.mjs +1 -1
  251. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  252. package/dist/navigation/NavigationClient.mjs +1 -1
  253. package/dist/network/FetchClient.mjs +1 -1
  254. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  255. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  256. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  257. package/dist/packageMetadata.d.ts +1 -1
  258. package/dist/packageMetadata.d.ts.map +1 -1
  259. package/dist/packageMetadata.mjs +2 -2
  260. package/dist/protocol/Authorize.mjs +1 -1
  261. package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
  262. package/dist/redirect-bridge/cache/TokenCache.d.ts +7 -5
  263. package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -1
  264. package/dist/redirect-bridge/config/Configuration.mjs +1 -1
  265. package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
  266. package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
  267. package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
  268. package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
  269. package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
  270. package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
  271. package/dist/redirect-bridge/packageMetadata.d.ts.map +1 -1
  272. package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
  273. package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts +18 -0
  274. package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts.map +1 -1
  275. package/dist/redirect-bridge/request/ClearCacheRequest.d.ts +6 -2
  276. package/dist/redirect-bridge/request/ClearCacheRequest.d.ts.map +1 -1
  277. package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts +12 -9
  278. package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts.map +1 -1
  279. package/dist/redirect-bridge/request/EndSessionRequest.d.ts +3 -6
  280. package/dist/redirect-bridge/request/EndSessionRequest.d.ts.map +1 -1
  281. package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts +3 -2
  282. package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts.map +1 -1
  283. package/dist/redirect-bridge/request/PopupRequest.d.ts +12 -24
  284. package/dist/redirect-bridge/request/PopupRequest.d.ts.map +1 -1
  285. package/dist/redirect-bridge/request/RedirectRequest.d.ts +6 -22
  286. package/dist/redirect-bridge/request/RedirectRequest.d.ts.map +1 -1
  287. package/dist/redirect-bridge/request/SilentRequest.d.ts +33 -13
  288. package/dist/redirect-bridge/request/SilentRequest.d.ts.map +1 -1
  289. package/dist/redirect-bridge/request/SsoSilentRequest.d.ts +0 -21
  290. package/dist/redirect-bridge/request/SsoSilentRequest.d.ts.map +1 -1
  291. package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  292. package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  293. package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  294. package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  295. package/dist/redirect-bridge/utils/BrowserConstants.mjs +1 -1
  296. package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
  297. package/dist/request/AuthorizationCodeRequest.d.ts +18 -0
  298. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  299. package/dist/request/ClearCacheRequest.d.ts +6 -2
  300. package/dist/request/ClearCacheRequest.d.ts.map +1 -1
  301. package/dist/request/EndSessionPopupRequest.d.ts +12 -9
  302. package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
  303. package/dist/request/EndSessionRequest.d.ts +3 -6
  304. package/dist/request/EndSessionRequest.d.ts.map +1 -1
  305. package/dist/request/InitializeApplicationRequest.d.ts +3 -2
  306. package/dist/request/InitializeApplicationRequest.d.ts.map +1 -1
  307. package/dist/request/PopupRequest.d.ts +12 -24
  308. package/dist/request/PopupRequest.d.ts.map +1 -1
  309. package/dist/request/RedirectRequest.d.ts +6 -22
  310. package/dist/request/RedirectRequest.d.ts.map +1 -1
  311. package/dist/request/RequestHelpers.mjs +1 -1
  312. package/dist/request/SilentRequest.d.ts +33 -13
  313. package/dist/request/SilentRequest.d.ts.map +1 -1
  314. package/dist/request/SsoSilentRequest.d.ts +0 -21
  315. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  316. package/dist/response/ResponseHandler.mjs +1 -1
  317. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  318. package/dist/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  319. package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  320. package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -3
  321. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  322. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  323. package/dist/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  324. package/dist/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  325. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +5 -3
  326. package/dist/telemetry/BrowserRootPerformanceEvents.mjs.map +1 -1
  327. package/dist/utils/BrowserConstants.mjs +1 -1
  328. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  329. package/dist/utils/BrowserUtils.mjs +1 -1
  330. package/dist/utils/Helpers.mjs +1 -1
  331. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  332. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  333. package/lib/custom-auth-path/msal-custom-auth.cjs +77 -72
  334. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  335. package/lib/custom-auth-path/types/cache/TokenCache.d.ts +7 -5
  336. package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
  337. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  338. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  339. package/lib/custom-auth-path/types/packageMetadata.d.ts.map +1 -1
  340. package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts +18 -0
  341. package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  342. package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts +6 -2
  343. package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts.map +1 -1
  344. package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts +12 -9
  345. package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  346. package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts +3 -6
  347. package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts.map +1 -1
  348. package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts +3 -2
  349. package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts.map +1 -1
  350. package/lib/custom-auth-path/types/request/PopupRequest.d.ts +12 -24
  351. package/lib/custom-auth-path/types/request/PopupRequest.d.ts.map +1 -1
  352. package/lib/custom-auth-path/types/request/RedirectRequest.d.ts +6 -22
  353. package/lib/custom-auth-path/types/request/RedirectRequest.d.ts.map +1 -1
  354. package/lib/custom-auth-path/types/request/SilentRequest.d.ts +33 -13
  355. package/lib/custom-auth-path/types/request/SilentRequest.d.ts.map +1 -1
  356. package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts +0 -21
  357. package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts.map +1 -1
  358. package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  359. package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  360. package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  361. package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  362. package/lib/log-strings-mapping.json +2 -2
  363. package/lib/msal-browser.cjs +128 -106
  364. package/lib/msal-browser.cjs.map +1 -1
  365. package/lib/msal-browser.js +128 -106
  366. package/lib/msal-browser.js.map +1 -1
  367. package/lib/msal-browser.min.js +2 -2
  368. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  369. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  370. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  371. package/lib/types/cache/TokenCache.d.ts +7 -5
  372. package/lib/types/cache/TokenCache.d.ts.map +1 -1
  373. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  374. package/lib/types/packageMetadata.d.ts +1 -1
  375. package/lib/types/packageMetadata.d.ts.map +1 -1
  376. package/lib/types/request/AuthorizationCodeRequest.d.ts +18 -0
  377. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  378. package/lib/types/request/ClearCacheRequest.d.ts +6 -2
  379. package/lib/types/request/ClearCacheRequest.d.ts.map +1 -1
  380. package/lib/types/request/EndSessionPopupRequest.d.ts +12 -9
  381. package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  382. package/lib/types/request/EndSessionRequest.d.ts +3 -6
  383. package/lib/types/request/EndSessionRequest.d.ts.map +1 -1
  384. package/lib/types/request/InitializeApplicationRequest.d.ts +3 -2
  385. package/lib/types/request/InitializeApplicationRequest.d.ts.map +1 -1
  386. package/lib/types/request/PopupRequest.d.ts +12 -24
  387. package/lib/types/request/PopupRequest.d.ts.map +1 -1
  388. package/lib/types/request/RedirectRequest.d.ts +6 -22
  389. package/lib/types/request/RedirectRequest.d.ts.map +1 -1
  390. package/lib/types/request/SilentRequest.d.ts +33 -13
  391. package/lib/types/request/SilentRequest.d.ts.map +1 -1
  392. package/lib/types/request/SsoSilentRequest.d.ts +0 -21
  393. package/lib/types/request/SsoSilentRequest.d.ts.map +1 -1
  394. package/lib/types/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  395. package/lib/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  396. package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  397. package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  398. package/package.json +5 -4
  399. package/src/cache/TokenCache.ts +143 -95
  400. package/src/packageMetadata.ts +1 -1
  401. package/src/request/AuthorizationCodeRequest.ts +18 -0
  402. package/src/request/ClearCacheRequest.ts +6 -2
  403. package/src/request/EndSessionPopupRequest.ts +12 -9
  404. package/src/request/EndSessionRequest.ts +3 -6
  405. package/src/request/InitializeApplicationRequest.ts +3 -2
  406. package/src/request/PopupRequest.ts +12 -24
  407. package/src/request/RedirectRequest.ts +6 -22
  408. package/src/request/SilentRequest.ts +33 -13
  409. package/src/request/SsoSilentRequest.ts +0 -21
  410. package/src/telemetry/BrowserPerformanceEvents.ts +5 -0
  411. package/src/telemetry/BrowserRootPerformanceEvents.ts +2 -0
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-browser v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
9
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -238,7 +238,7 @@
238
238
  // Token renewal offset default in seconds
239
239
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
240
240
 
241
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
241
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
242
242
  /*
243
243
  * Copyright (c) Microsoft Corporation. All rights reserved.
244
244
  * Licensed under the MIT License.
@@ -288,7 +288,7 @@
288
288
  const EAR_JWK = "ear_jwk";
289
289
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
290
290
 
291
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
291
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
292
292
  /*
293
293
  * Copyright (c) Microsoft Corporation. All rights reserved.
294
294
  * Licensed under the MIT License.
@@ -319,7 +319,7 @@
319
319
  return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
320
320
  }
321
321
 
322
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
322
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
323
323
 
324
324
  /*
325
325
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -339,7 +339,7 @@
339
339
  return new ClientConfigurationError(errorCode);
340
340
  }
341
341
 
342
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
342
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
343
343
  /*
344
344
  * Copyright (c) Microsoft Corporation. All rights reserved.
345
345
  * Licensed under the MIT License.
@@ -436,7 +436,7 @@
436
436
  }
437
437
  }
438
438
 
439
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
439
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
440
440
 
441
441
  /*
442
442
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -459,7 +459,7 @@
459
459
  return new ClientAuthError(errorCode, additionalMessage);
460
460
  }
461
461
 
462
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
462
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
463
463
  /*
464
464
  * Copyright (c) Microsoft Corporation. All rights reserved.
465
465
  * Licensed under the MIT License.
@@ -513,7 +513,7 @@
513
513
  urlParseError: urlParseError
514
514
  });
515
515
 
516
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
516
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
517
517
  /*
518
518
  * Copyright (c) Microsoft Corporation. All rights reserved.
519
519
  * Licensed under the MIT License.
@@ -597,7 +597,7 @@
597
597
  userCanceled: userCanceled
598
598
  });
599
599
 
600
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
600
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
601
601
 
602
602
  /*
603
603
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -792,7 +792,7 @@
792
792
  }
793
793
  }
794
794
 
795
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
795
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
796
796
 
797
797
  /*
798
798
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1159,7 +1159,7 @@
1159
1159
  parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
1160
1160
  }
1161
1161
 
1162
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1162
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1163
1163
 
1164
1164
  /*
1165
1165
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1268,7 +1268,7 @@
1268
1268
  }
1269
1269
  }
1270
1270
 
1271
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1271
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1272
1272
 
1273
1273
  /*
1274
1274
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1307,7 +1307,7 @@
1307
1307
  },
1308
1308
  };
1309
1309
 
1310
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1310
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1311
1311
  /*
1312
1312
  * Copyright (c) Microsoft Corporation. All rights reserved.
1313
1313
  * Licensed under the MIT License.
@@ -1582,12 +1582,12 @@
1582
1582
  }
1583
1583
  }
1584
1584
 
1585
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1585
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1586
1586
  /* eslint-disable header/header */
1587
1587
  const name$1 = "@azure/msal-common";
1588
- const version$1 = "16.0.0-beta.0";
1588
+ const version$1 = "16.0.1";
1589
1589
 
1590
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1590
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1591
1591
  /*
1592
1592
  * Copyright (c) Microsoft Corporation. All rights reserved.
1593
1593
  * Licensed under the MIT License.
@@ -1607,7 +1607,7 @@
1607
1607
  AzureUsGovernment: "https://login.microsoftonline.us",
1608
1608
  };
1609
1609
 
1610
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1610
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1611
1611
  /*
1612
1612
  * Copyright (c) Microsoft Corporation. All rights reserved.
1613
1613
  * Licensed under the MIT License.
@@ -1689,7 +1689,7 @@
1689
1689
  return updatedAccountInfo;
1690
1690
  }
1691
1691
 
1692
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1692
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1693
1693
 
1694
1694
  /*
1695
1695
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1769,7 +1769,7 @@
1769
1769
  }
1770
1770
  }
1771
1771
 
1772
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1772
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1773
1773
 
1774
1774
  /*
1775
1775
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1926,7 +1926,7 @@
1926
1926
  }
1927
1927
  }
1928
1928
 
1929
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
1929
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
1930
1930
 
1931
1931
  /*
1932
1932
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2068,7 +2068,7 @@
2068
2068
  return null;
2069
2069
  }
2070
2070
 
2071
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2071
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2072
2072
  /*
2073
2073
  * Copyright (c) Microsoft Corporation. All rights reserved.
2074
2074
  * Licensed under the MIT License.
@@ -2076,7 +2076,7 @@
2076
2076
  const cacheQuotaExceeded = "cache_quota_exceeded";
2077
2077
  const cacheErrorUnknown = "cache_error_unknown";
2078
2078
 
2079
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2079
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2080
2080
 
2081
2081
  /*
2082
2082
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2114,7 +2114,7 @@
2114
2114
  }
2115
2115
  }
2116
2116
 
2117
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2117
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2118
2118
 
2119
2119
  /*
2120
2120
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2152,7 +2152,7 @@
2152
2152
  };
2153
2153
  }
2154
2154
 
2155
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2155
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2156
2156
  /*
2157
2157
  * Copyright (c) Microsoft Corporation. All rights reserved.
2158
2158
  * Licensed under the MIT License.
@@ -2167,7 +2167,7 @@
2167
2167
  Ciam: 3,
2168
2168
  };
2169
2169
 
2170
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2170
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2171
2171
  /*
2172
2172
  * Copyright (c) Microsoft Corporation. All rights reserved.
2173
2173
  * Licensed under the MIT License.
@@ -2189,7 +2189,7 @@
2189
2189
  return null;
2190
2190
  }
2191
2191
 
2192
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2192
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2193
2193
  /*
2194
2194
  * Copyright (c) Microsoft Corporation. All rights reserved.
2195
2195
  * Licensed under the MIT License.
@@ -2213,7 +2213,7 @@
2213
2213
  EAR: "EAR",
2214
2214
  };
2215
2215
 
2216
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2216
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2217
2217
  /**
2218
2218
  * Returns the AccountInfo interface for this account.
2219
2219
  */
@@ -2373,7 +2373,7 @@
2373
2373
  entity.hasOwnProperty("authorityType"));
2374
2374
  }
2375
2375
 
2376
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
2376
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
2377
2377
 
2378
2378
  /*
2379
2379
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3470,7 +3470,7 @@
3470
3470
  }
3471
3471
  }
3472
3472
 
3473
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3473
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3474
3474
  /*
3475
3475
  * Copyright (c) Microsoft Corporation. All rights reserved.
3476
3476
  * Licensed under the MIT License.
@@ -3511,7 +3511,7 @@
3511
3511
  "upgradedCacheCount",
3512
3512
  ]);
3513
3513
 
3514
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3514
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3515
3515
 
3516
3516
  /*
3517
3517
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3566,7 +3566,7 @@
3566
3566
  }
3567
3567
  }
3568
3568
 
3569
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3569
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3570
3570
 
3571
3571
  /*
3572
3572
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3660,7 +3660,7 @@
3660
3660
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3661
3661
  }
3662
3662
 
3663
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3663
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3664
3664
 
3665
3665
  /*
3666
3666
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3679,7 +3679,7 @@
3679
3679
  }
3680
3680
  }
3681
3681
 
3682
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3682
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3683
3683
  /*
3684
3684
  * Copyright (c) Microsoft Corporation. All rights reserved.
3685
3685
  * Licensed under the MIT License.
@@ -3707,7 +3707,7 @@
3707
3707
  uxNotAllowed: uxNotAllowed
3708
3708
  });
3709
3709
 
3710
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3710
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3711
3711
 
3712
3712
  /*
3713
3713
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3773,7 +3773,7 @@
3773
3773
  return new InteractionRequiredAuthError(errorCode, errorMessage);
3774
3774
  }
3775
3775
 
3776
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3776
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3777
3777
 
3778
3778
  /*
3779
3779
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3841,7 +3841,7 @@
3841
3841
  }
3842
3842
  }
3843
3843
 
3844
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3844
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3845
3845
  /*
3846
3846
  * Copyright (c) Microsoft Corporation. All rights reserved.
3847
3847
  * Licensed under the MIT License.
@@ -3906,7 +3906,7 @@
3906
3906
  return cachedAtSec > nowSeconds();
3907
3907
  }
3908
3908
 
3909
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3909
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3910
3910
  /*
3911
3911
  * Copyright (c) Microsoft Corporation. All rights reserved.
3912
3912
  * Licensed under the MIT License.
@@ -3977,7 +3977,7 @@
3977
3977
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
3978
3978
  const SetUserData = "setUserData";
3979
3979
 
3980
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
3980
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
3981
3981
  /*
3982
3982
  * Copyright (c) Microsoft Corporation. All rights reserved.
3983
3983
  * Licensed under the MIT License.
@@ -4072,7 +4072,7 @@
4072
4072
  };
4073
4073
  };
4074
4074
 
4075
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4075
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4076
4076
 
4077
4077
  /*
4078
4078
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4152,7 +4152,7 @@
4152
4152
  }
4153
4153
  }
4154
4154
 
4155
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4155
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4156
4156
  /*
4157
4157
  * Copyright (c) Microsoft Corporation. All rights reserved.
4158
4158
  * Licensed under the MIT License.
@@ -4179,7 +4179,7 @@
4179
4179
  }
4180
4180
  }
4181
4181
 
4182
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4182
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4183
4183
 
4184
4184
  /*
4185
4185
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4438,7 +4438,7 @@
4438
4438
  return metadata.expiresAt <= nowSeconds();
4439
4439
  }
4440
4440
 
4441
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4441
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4442
4442
 
4443
4443
  /*
4444
4444
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4629,6 +4629,7 @@
4629
4629
  ? parseInt(serverTokenResponse.refresh_token_expires_in, 10)
4630
4630
  : serverTokenResponse.refresh_token_expires_in;
4631
4631
  rtExpiresOn = reqTimestamp + rtExpiresIn;
4632
+ this.performanceClient?.addFields({ ntwkRtExpiresOnSeconds: rtExpiresOn }, request.correlationId);
4632
4633
  }
4633
4634
  cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
4634
4635
  }
@@ -4768,7 +4769,7 @@
4768
4769
  return baseAccount;
4769
4770
  }
4770
4771
 
4771
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4772
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4772
4773
  /*
4773
4774
  * Copyright (c) Microsoft Corporation. All rights reserved.
4774
4775
  * Licensed under the MIT License.
@@ -4778,7 +4779,7 @@
4778
4779
  UPN: "UPN",
4779
4780
  };
4780
4781
 
4781
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4782
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4782
4783
  /*
4783
4784
  * Copyright (c) Microsoft Corporation. All rights reserved.
4784
4785
  * Licensed under the MIT License.
@@ -4796,7 +4797,7 @@
4796
4797
  }
4797
4798
  }
4798
4799
 
4799
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4800
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4800
4801
  /*
4801
4802
  * Copyright (c) Microsoft Corporation. All rights reserved.
4802
4803
  * Licensed under the MIT License.
@@ -4817,7 +4818,7 @@
4817
4818
  };
4818
4819
  }
4819
4820
 
4820
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4821
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4821
4822
 
4822
4823
  /*
4823
4824
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4903,7 +4904,7 @@
4903
4904
  }
4904
4905
  }
4905
4906
 
4906
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4907
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4907
4908
 
4908
4909
  /*
4909
4910
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4934,7 +4935,7 @@
4934
4935
  return new NetworkError(error, httpStatus, responseHeaders);
4935
4936
  }
4936
4937
 
4937
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
4938
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
4938
4939
 
4939
4940
  /*
4940
4941
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5048,7 +5049,7 @@
5048
5049
  return response;
5049
5050
  }
5050
5051
 
5051
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
5052
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
5052
5053
  /*
5053
5054
  * Copyright (c) Microsoft Corporation. All rights reserved.
5054
5055
  * Licensed under the MIT License.
@@ -5060,7 +5061,7 @@
5060
5061
  response.hasOwnProperty("jwks_uri"));
5061
5062
  }
5062
5063
 
5063
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
5064
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
5064
5065
  /*
5065
5066
  * Copyright (c) Microsoft Corporation. All rights reserved.
5066
5067
  * Licensed under the MIT License.
@@ -5070,7 +5071,7 @@
5070
5071
  response.hasOwnProperty("metadata"));
5071
5072
  }
5072
5073
 
5073
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
5074
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
5074
5075
  /*
5075
5076
  * Copyright (c) Microsoft Corporation. All rights reserved.
5076
5077
  * Licensed under the MIT License.
@@ -5080,7 +5081,7 @@
5080
5081
  response.hasOwnProperty("error_description"));
5081
5082
  }
5082
5083
 
5083
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
5084
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
5084
5085
 
5085
5086
  /*
5086
5087
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5185,7 +5186,7 @@
5185
5186
  },
5186
5187
  };
5187
5188
 
5188
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
5189
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
5189
5190
 
5190
5191
  /*
5191
5192
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6005,7 +6006,7 @@
6005
6006
  };
6006
6007
  }
6007
6008
 
6008
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6009
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6009
6010
 
6010
6011
  /*
6011
6012
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6039,7 +6040,7 @@
6039
6040
  }
6040
6041
  }
6041
6042
 
6042
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6043
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6043
6044
 
6044
6045
  /*
6045
6046
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6299,7 +6300,7 @@
6299
6300
  }
6300
6301
  }
6301
6302
 
6302
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6303
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6303
6304
 
6304
6305
  /*
6305
6306
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6388,11 +6389,16 @@
6388
6389
  if (!refreshToken) {
6389
6390
  throw createInteractionRequiredAuthError(noTokensFound);
6390
6391
  }
6391
- if (refreshToken.expiresOn &&
6392
- isTokenExpired(refreshToken.expiresOn, request.refreshTokenExpirationOffsetSeconds ||
6393
- DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS)) {
6394
- this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
6395
- throw createInteractionRequiredAuthError(refreshTokenExpired);
6392
+ if (refreshToken.expiresOn) {
6393
+ const offset = request.refreshTokenExpirationOffsetSeconds ||
6394
+ DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS;
6395
+ this.performanceClient?.addFields({
6396
+ cacheRtExpiresOnSeconds: Number(refreshToken.expiresOn),
6397
+ rtOffsetSeconds: offset,
6398
+ }, request.correlationId);
6399
+ if (isTokenExpired(refreshToken.expiresOn, offset)) {
6400
+ throw createInteractionRequiredAuthError(refreshTokenExpired);
6401
+ }
6396
6402
  }
6397
6403
  // attach cached RT size to the current measurement
6398
6404
  const refreshTokenRequest = {
@@ -6410,7 +6416,6 @@
6410
6416
  }
6411
6417
  catch (e) {
6412
6418
  if (e instanceof InteractionRequiredAuthError) {
6413
- this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
6414
6419
  if (e.subError === badToken) {
6415
6420
  // Remove bad refresh token from cache
6416
6421
  this.logger.verbose("1pg3ap", request.correlationId);
@@ -6520,7 +6525,7 @@
6520
6525
  }
6521
6526
  }
6522
6527
 
6523
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6528
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6524
6529
 
6525
6530
  /*
6526
6531
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6629,7 +6634,7 @@
6629
6634
  }
6630
6635
  }
6631
6636
 
6632
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6637
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6633
6638
 
6634
6639
  /*
6635
6640
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6644,7 +6649,7 @@
6644
6649
  },
6645
6650
  };
6646
6651
 
6647
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6652
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6648
6653
 
6649
6654
  /*
6650
6655
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6868,7 +6873,7 @@
6868
6873
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6869
6874
  }
6870
6875
 
6871
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6876
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6872
6877
 
6873
6878
  /*
6874
6879
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6926,7 +6931,7 @@
6926
6931
  }
6927
6932
  }
6928
6933
 
6929
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6934
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6930
6935
  /*
6931
6936
  * Copyright (c) Microsoft Corporation. All rights reserved.
6932
6937
  * Licensed under the MIT License.
@@ -6943,7 +6948,7 @@
6943
6948
  unexpectedError: unexpectedError
6944
6949
  });
6945
6950
 
6946
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
6951
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
6947
6952
 
6948
6953
  /*
6949
6954
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7204,7 +7209,7 @@
7204
7209
  }
7205
7210
  }
7206
7211
 
7207
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
7212
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
7208
7213
 
7209
7214
  /*
7210
7215
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7225,7 +7230,7 @@
7225
7230
  return new JoseHeaderError(code);
7226
7231
  }
7227
7232
 
7228
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
7233
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
7229
7234
  /*
7230
7235
  * Copyright (c) Microsoft Corporation. All rights reserved.
7231
7236
  * Licensed under the MIT License.
@@ -7233,7 +7238,7 @@
7233
7238
  const missingKidError = "missing_kid_error";
7234
7239
  const missingAlgError = "missing_alg_error";
7235
7240
 
7236
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
7241
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
7237
7242
 
7238
7243
  /*
7239
7244
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7273,7 +7278,7 @@
7273
7278
  }
7274
7279
  }
7275
7280
 
7276
- /*! @azure/msal-common v16.0.0-beta.0 2025-12-05 */
7281
+ /*! @azure/msal-common v16.0.1 2026-01-16 */
7277
7282
 
7278
7283
  /*
7279
7284
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8932,7 +8937,11 @@
8932
8937
  const Encrypt = "encrypt";
8933
8938
  const Decrypt = "decrypt";
8934
8939
  const GenerateEarKey = "generateEarKey";
8935
- const DecryptEarResponse = "decryptEarResponse";
8940
+ const DecryptEarResponse = "decryptEarResponse";
8941
+ const LoadAccount = "loadAccount";
8942
+ const LoadIdToken = "loadIdToken";
8943
+ const LoadAccessToken = "loadAccessToken";
8944
+ const LoadRefreshToken = "loadRefreshToken";
8936
8945
 
8937
8946
  /*
8938
8947
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9539,7 +9548,9 @@
9539
9548
  // Initialize client application
9540
9549
  const InitializeClientApplication = "initializeClientApplication";
9541
9550
  // Update cache storage
9542
- const LocalStorageUpdated = "localStorageUpdated";
9551
+ const LocalStorageUpdated = "localStorageUpdated";
9552
+ // Load external tokens
9553
+ const LoadExternalTokens = "loadExternalTokens";
9543
9554
 
9544
9555
  var BrowserRootPerformanceEvents = /*#__PURE__*/Object.freeze({
9545
9556
  __proto__: null,
@@ -9549,6 +9560,7 @@
9549
9560
  AcquireTokenRedirect: AcquireTokenRedirect,
9550
9561
  AcquireTokenSilent: AcquireTokenSilent,
9551
9562
  InitializeClientApplication: InitializeClientApplication,
9563
+ LoadExternalTokens: LoadExternalTokens,
9552
9564
  LocalStorageUpdated: LocalStorageUpdated,
9553
9565
  SsoSilent: SsoSilent
9554
9566
  });
@@ -10067,7 +10079,7 @@
10067
10079
 
10068
10080
  /* eslint-disable header/header */
10069
10081
  const name = "@azure/msal-browser";
10070
- const version = "5.0.0-beta.0";
10082
+ const version = "5.0.1";
10071
10083
 
10072
10084
  /*
10073
10085
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -17879,41 +17891,51 @@
17879
17891
  */
17880
17892
  /**
17881
17893
  * API to load tokens to msal-browser cache.
17882
- * @param request
17883
- * @param response
17884
- * @param options
17894
+ * @param config - Object to configure the MSAL app.
17895
+ * @param request - Silent request containing authority, scopes, and account.
17896
+ * @param response - External token response to load into the cache.
17897
+ * @param options - Options controlling how tokens are loaded into the cache.
17898
+ * @param performanceClient - Optional performance client used for telemetry measurements.
17885
17899
  * @returns `AuthenticationResult` for the response that was loaded.
17886
17900
  */
17887
- async function loadExternalTokens(config, request, response, options) {
17901
+ async function loadExternalTokens(config, request, response, options, performanceClient = new StubPerformanceClient()) {
17888
17902
  blockNonBrowserEnvironment();
17889
17903
  const browserConfig = buildConfiguration(config, true);
17890
17904
  const correlationId = request.correlationId || createNewGuid();
17891
- const idTokenClaims = response.id_token
17892
- ? extractTokenClaims(response.id_token, base64Decode)
17893
- : undefined;
17894
- const kmsi = isKmsi(idTokenClaims || {});
17895
- const authorityOptions = {
17896
- protocolMode: browserConfig.system.protocolMode,
17897
- knownAuthorities: browserConfig.auth.knownAuthorities,
17898
- cloudDiscoveryMetadata: browserConfig.auth.cloudDiscoveryMetadata,
17899
- authorityMetadata: browserConfig.auth.authorityMetadata,
17900
- };
17901
- const logger = new Logger(browserConfig.system.loggerOptions || {});
17902
- const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
17903
- const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth));
17904
- const authority = request.authority
17905
- ? new Authority(Authority.generateAuthority(request.authority, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, request.correlationId || createNewGuid(), browserConfig.telemetry.client)
17906
- : undefined;
17907
- const cacheRecordAccount = await loadAccount(request, options.clientInfo || response.client_info || "", correlationId, storage, logger, cryptoOps, idTokenClaims, authority);
17908
- const idToken = await loadIdToken(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, correlationId, storage, logger, config.auth.clientId);
17909
- const accessToken = await loadAccessToken(request, response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, options, correlationId, storage, logger, config.auth.clientId);
17910
- const refreshToken = await loadRefreshToken(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, kmsi, correlationId, storage, logger, config.auth.clientId);
17911
- return generateAuthenticationResult(request, {
17912
- account: cacheRecordAccount,
17913
- idToken,
17914
- accessToken,
17915
- refreshToken,
17916
- }, idTokenClaims, authority);
17905
+ const rootMeasurement = performanceClient.startMeasurement(LoadExternalTokens, correlationId);
17906
+ try {
17907
+ const idTokenClaims = response.id_token
17908
+ ? extractTokenClaims(response.id_token, base64Decode)
17909
+ : undefined;
17910
+ const kmsi = isKmsi(idTokenClaims || {});
17911
+ const authorityOptions = {
17912
+ protocolMode: browserConfig.system.protocolMode,
17913
+ knownAuthorities: browserConfig.auth.knownAuthorities,
17914
+ cloudDiscoveryMetadata: browserConfig.auth.cloudDiscoveryMetadata,
17915
+ authorityMetadata: browserConfig.auth.authorityMetadata,
17916
+ };
17917
+ const logger = new Logger(browserConfig.system.loggerOptions || {});
17918
+ const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
17919
+ const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth));
17920
+ const authority = request.authority
17921
+ ? new Authority(Authority.generateAuthority(request.authority, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, request.correlationId || createNewGuid(), browserConfig.telemetry.client)
17922
+ : undefined;
17923
+ const cacheRecordAccount = await invokeAsync(loadAccount, LoadAccount, logger, performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, storage, logger, cryptoOps, idTokenClaims, authority);
17924
+ const idToken = await invokeAsync(loadIdToken, LoadIdToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, correlationId, storage, logger, config.auth.clientId);
17925
+ const accessToken = await invokeAsync(loadAccessToken, LoadAccessToken, logger, performanceClient, correlationId)(request, response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, options, correlationId, storage, logger, config.auth.clientId);
17926
+ const refreshToken = await invokeAsync(loadRefreshToken, LoadRefreshToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, kmsi, correlationId, storage, logger, config.auth.clientId);
17927
+ rootMeasurement.end({ success: true }, undefined, getAccountInfo(cacheRecordAccount));
17928
+ return generateAuthenticationResult(request, {
17929
+ account: cacheRecordAccount,
17930
+ idToken,
17931
+ accessToken,
17932
+ refreshToken,
17933
+ }, idTokenClaims, authority);
17934
+ }
17935
+ catch (error) {
17936
+ rootMeasurement.end({ success: false }, error);
17937
+ throw error;
17938
+ }
17917
17939
  }
17918
17940
  /**
17919
17941
  * Helper function to load account to msal-browser cache