@azure/msal-browser 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) 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.d.ts +2 -2
  10. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  11. package/dist/cache/BrowserCacheManager.mjs +14 -9
  12. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  13. package/dist/cache/CacheHelpers.mjs +1 -1
  14. package/dist/cache/CacheKeys.mjs +1 -1
  15. package/dist/cache/CookieStorage.mjs +1 -1
  16. package/dist/cache/DatabaseStorage.mjs +1 -1
  17. package/dist/cache/EncryptedData.mjs +1 -1
  18. package/dist/cache/LocalStorage.mjs +1 -1
  19. package/dist/cache/MemoryStorage.mjs +1 -1
  20. package/dist/cache/SessionStorage.mjs +1 -1
  21. package/dist/cache/TokenCache.d.ts.map +1 -1
  22. package/dist/cache/TokenCache.mjs +24 -18
  23. package/dist/cache/TokenCache.mjs.map +1 -1
  24. package/dist/config/Configuration.mjs +1 -1
  25. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
  26. package/dist/controllers/NestedAppAuthController.mjs +3 -3
  27. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  28. package/dist/controllers/StandardController.d.ts.map +1 -1
  29. package/dist/controllers/StandardController.mjs +2 -2
  30. package/dist/controllers/StandardController.mjs.map +1 -1
  31. package/dist/crypto/BrowserCrypto.mjs +1 -1
  32. package/dist/crypto/CryptoOps.mjs +1 -1
  33. package/dist/crypto/PkceGenerator.mjs +1 -1
  34. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  35. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  36. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  37. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  38. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  39. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  40. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  41. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  42. package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts +2 -2
  43. package/dist/custom-auth-path/cache/BrowserCacheManager.d.ts.map +1 -1
  44. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +14 -9
  45. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs.map +1 -1
  46. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  47. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  48. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  49. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  50. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  51. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  52. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  53. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  54. package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -1
  55. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  56. package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
  57. package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
  58. package/dist/custom-auth-path/controllers/StandardController.mjs +2 -2
  59. package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
  60. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  61. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  62. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  64. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  99. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
  101. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +3 -3
  103. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  104. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +3 -3
  107. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
  110. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +3 -3
  111. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -1
  112. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  136. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -2
  137. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  138. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  149. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  150. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  151. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  160. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  161. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  162. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  164. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +7 -7
  165. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  166. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  167. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  168. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  169. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  170. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  171. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  172. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  173. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  174. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  175. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  176. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  177. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  178. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  179. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  180. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  181. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  182. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  183. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  184. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  185. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  186. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  187. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  188. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  189. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  190. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  191. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  192. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  193. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  194. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +3 -3
  195. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  196. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  197. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  198. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  199. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +2 -2
  200. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  201. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  202. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  203. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  204. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +2 -2
  205. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs.map +1 -1
  206. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  207. package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts +3 -2
  208. package/dist/custom-auth-path/interaction_handler/InteractionHandler.d.ts.map +1 -1
  209. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +5 -5
  210. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs.map +1 -1
  211. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  212. package/dist/custom-auth-path/log-strings-mapping.json +2 -2
  213. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  214. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  215. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  216. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  217. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  218. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  219. package/dist/custom-auth-path/protocol/Authorize.d.ts.map +1 -1
  220. package/dist/custom-auth-path/protocol/Authorize.mjs +3 -3
  221. package/dist/custom-auth-path/protocol/Authorize.mjs.map +1 -1
  222. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  223. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  224. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +1 -1
  225. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  226. package/dist/custom-auth-path/utils/BrowserConstants.d.ts +20 -0
  227. package/dist/custom-auth-path/utils/BrowserConstants.d.ts.map +1 -1
  228. package/dist/custom-auth-path/utils/BrowserConstants.mjs +27 -2
  229. package/dist/custom-auth-path/utils/BrowserConstants.mjs.map +1 -1
  230. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  231. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  232. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  233. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  234. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  235. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
  236. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  237. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
  238. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
  239. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  240. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  241. package/dist/encode/Base64Decode.mjs +1 -1
  242. package/dist/encode/Base64Encode.mjs +1 -1
  243. package/dist/error/BrowserAuthError.mjs +1 -1
  244. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  245. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  246. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  247. package/dist/error/NativeAuthError.mjs +1 -1
  248. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  249. package/dist/error/NestedAppAuthError.mjs +1 -1
  250. package/dist/event/EventHandler.mjs +1 -1
  251. package/dist/event/EventMessage.mjs +1 -1
  252. package/dist/event/EventType.mjs +1 -1
  253. package/dist/index.mjs +1 -1
  254. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  255. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  256. package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  257. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +3 -3
  258. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  259. package/dist/interaction_client/PopupClient.mjs +1 -1
  260. package/dist/interaction_client/RedirectClient.mjs +1 -1
  261. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  262. package/dist/interaction_client/SilentAuthCodeClient.mjs +2 -2
  263. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  264. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  265. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  266. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  267. package/dist/interaction_client/SilentRefreshClient.mjs +2 -2
  268. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  269. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  270. package/dist/interaction_handler/InteractionHandler.d.ts +3 -2
  271. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  272. package/dist/interaction_handler/InteractionHandler.mjs +5 -5
  273. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  274. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  275. package/dist/log-strings-mapping.json +4 -4
  276. package/dist/naa/BridgeError.mjs +1 -1
  277. package/dist/naa/BridgeProxy.mjs +1 -1
  278. package/dist/naa/BridgeStatusCode.mjs +1 -1
  279. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  280. package/dist/navigation/NavigationClient.mjs +1 -1
  281. package/dist/network/FetchClient.mjs +1 -1
  282. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  283. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  284. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  285. package/dist/packageMetadata.d.ts +1 -1
  286. package/dist/packageMetadata.mjs +2 -2
  287. package/dist/protocol/Authorize.d.ts.map +1 -1
  288. package/dist/protocol/Authorize.mjs +3 -3
  289. package/dist/protocol/Authorize.mjs.map +1 -1
  290. package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts +2 -2
  291. package/dist/redirect-bridge/cache/BrowserCacheManager.d.ts.map +1 -1
  292. package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
  293. package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -1
  294. package/dist/redirect-bridge/config/Configuration.mjs +1 -1
  295. package/dist/redirect-bridge/controllers/NestedAppAuthController.d.ts.map +1 -1
  296. package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -1
  297. package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
  298. package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
  299. package/dist/redirect-bridge/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  300. package/dist/redirect-bridge/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
  301. package/dist/redirect-bridge/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
  302. package/dist/redirect-bridge/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  303. package/dist/redirect-bridge/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  304. package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
  305. package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
  306. package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
  307. package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  308. package/dist/redirect-bridge/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  309. package/dist/redirect-bridge/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  310. package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts +3 -2
  311. package/dist/redirect-bridge/interaction_handler/InteractionHandler.d.ts.map +1 -1
  312. package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
  313. package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
  314. package/dist/redirect-bridge/protocol/Authorize.d.ts.map +1 -1
  315. package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
  316. package/dist/redirect-bridge/utils/BrowserConstants.d.ts +20 -0
  317. package/dist/redirect-bridge/utils/BrowserConstants.d.ts.map +1 -1
  318. package/dist/redirect-bridge/utils/BrowserConstants.mjs +2 -1
  319. package/dist/redirect-bridge/utils/BrowserConstants.mjs.map +1 -1
  320. package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
  321. package/dist/request/RequestHelpers.mjs +1 -1
  322. package/dist/response/ResponseHandler.mjs +1 -1
  323. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  324. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  325. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  326. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  327. package/dist/utils/BrowserConstants.d.ts +20 -0
  328. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  329. package/dist/utils/BrowserConstants.mjs +27 -2
  330. package/dist/utils/BrowserConstants.mjs.map +1 -1
  331. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  332. package/dist/utils/BrowserUtils.mjs +1 -1
  333. package/dist/utils/Helpers.mjs +1 -1
  334. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  335. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  336. package/lib/custom-auth-path/msal-custom-auth.cjs +163 -113
  337. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  338. package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts +2 -2
  339. package/lib/custom-auth-path/types/cache/BrowserCacheManager.d.ts.map +1 -1
  340. package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
  341. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  342. package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
  343. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  344. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
  345. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  346. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
  347. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
  348. package/lib/custom-auth-path/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  349. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  350. package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  351. package/lib/custom-auth-path/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  352. package/lib/custom-auth-path/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  353. package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts +3 -2
  354. package/lib/custom-auth-path/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
  355. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  356. package/lib/custom-auth-path/types/protocol/Authorize.d.ts.map +1 -1
  357. package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts +20 -0
  358. package/lib/custom-auth-path/types/utils/BrowserConstants.d.ts.map +1 -1
  359. package/lib/log-strings-mapping.json +4 -4
  360. package/lib/msal-browser.cjs +177 -122
  361. package/lib/msal-browser.cjs.map +1 -1
  362. package/lib/msal-browser.js +177 -122
  363. package/lib/msal-browser.js.map +1 -1
  364. package/lib/msal-browser.min.js +2 -2
  365. package/lib/redirect-bridge/msal-redirect-bridge.js +11 -10
  366. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  367. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  368. package/lib/types/cache/BrowserCacheManager.d.ts +2 -2
  369. package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
  370. package/lib/types/cache/TokenCache.d.ts.map +1 -1
  371. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  372. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  373. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  374. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +1 -1
  375. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  376. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -1
  377. package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -1
  378. package/lib/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  379. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  380. package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  381. package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  382. package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  383. package/lib/types/interaction_handler/InteractionHandler.d.ts +3 -2
  384. package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
  385. package/lib/types/packageMetadata.d.ts +1 -1
  386. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  387. package/lib/types/utils/BrowserConstants.d.ts +20 -0
  388. package/lib/types/utils/BrowserConstants.d.ts.map +1 -1
  389. package/package.json +5 -3
  390. package/src/cache/BrowserCacheManager.ts +22 -6
  391. package/src/cache/TokenCache.ts +47 -31
  392. package/src/controllers/NestedAppAuthController.ts +3 -1
  393. package/src/controllers/StandardController.ts +2 -1
  394. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +4 -2
  395. package/src/custom_auth/core/interaction_client/jit/JitClient.ts +2 -1
  396. package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +2 -1
  397. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +2 -1
  398. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +10 -5
  399. package/src/interaction_client/PlatformAuthInteractionClient.ts +3 -1
  400. package/src/interaction_client/SilentAuthCodeClient.ts +1 -0
  401. package/src/interaction_client/SilentRefreshClient.ts +7 -5
  402. package/src/interaction_handler/InteractionHandler.ts +10 -3
  403. package/src/packageMetadata.ts +1 -1
  404. package/src/protocol/Authorize.ts +2 -1
  405. package/src/utils/BrowserConstants.ts +27 -0
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v5.0.2 2026-01-17 */
1
+ /*! @azure/msal-browser v5.1.0 2026-01-28 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -234,7 +234,7 @@ const JsonWebTokenTypes$1 = {
234
234
  // Token renewal offset default in seconds
235
235
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
236
236
 
237
- /*! @azure/msal-common v16.0.2 2026-01-17 */
237
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
238
238
  /*
239
239
  * Copyright (c) Microsoft Corporation. All rights reserved.
240
240
  * Licensed under the MIT License.
@@ -284,7 +284,7 @@ const INSTANCE_AWARE = "instance_aware";
284
284
  const EAR_JWK = "ear_jwk";
285
285
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
286
286
 
287
- /*! @azure/msal-common v16.0.2 2026-01-17 */
287
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
288
288
  /*
289
289
  * Copyright (c) Microsoft Corporation. All rights reserved.
290
290
  * Licensed under the MIT License.
@@ -315,7 +315,7 @@ function createAuthError(code, additionalMessage) {
315
315
  return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
316
316
  }
317
317
 
318
- /*! @azure/msal-common v16.0.2 2026-01-17 */
318
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
319
319
 
320
320
  /*
321
321
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -335,7 +335,7 @@ function createClientConfigurationError(errorCode) {
335
335
  return new ClientConfigurationError(errorCode);
336
336
  }
337
337
 
338
- /*! @azure/msal-common v16.0.2 2026-01-17 */
338
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
339
339
  /*
340
340
  * Copyright (c) Microsoft Corporation. All rights reserved.
341
341
  * Licensed under the MIT License.
@@ -432,7 +432,7 @@ class StringUtils {
432
432
  }
433
433
  }
434
434
 
435
- /*! @azure/msal-common v16.0.2 2026-01-17 */
435
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
436
436
 
437
437
  /*
438
438
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -455,7 +455,7 @@ function createClientAuthError(errorCode, additionalMessage) {
455
455
  return new ClientAuthError(errorCode, additionalMessage);
456
456
  }
457
457
 
458
- /*! @azure/msal-common v16.0.2 2026-01-17 */
458
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
459
459
  /*
460
460
  * Copyright (c) Microsoft Corporation. All rights reserved.
461
461
  * Licensed under the MIT License.
@@ -509,7 +509,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
509
509
  urlParseError: urlParseError
510
510
  });
511
511
 
512
- /*! @azure/msal-common v16.0.2 2026-01-17 */
512
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
513
513
  /*
514
514
  * Copyright (c) Microsoft Corporation. All rights reserved.
515
515
  * Licensed under the MIT License.
@@ -593,7 +593,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
593
593
  userCanceled: userCanceled
594
594
  });
595
595
 
596
- /*! @azure/msal-common v16.0.2 2026-01-17 */
596
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
597
597
 
598
598
  /*
599
599
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -788,7 +788,7 @@ class ScopeSet {
788
788
  }
789
789
  }
790
790
 
791
- /*! @azure/msal-common v16.0.2 2026-01-17 */
791
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
792
792
 
793
793
  /*
794
794
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1155,7 +1155,7 @@ function addEARParameters(parameters, jwk) {
1155
1155
  parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
1156
1156
  }
1157
1157
 
1158
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1158
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1159
1159
 
1160
1160
  /*
1161
1161
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1264,7 +1264,7 @@ function normalizeUrlForComparison(url) {
1264
1264
  }
1265
1265
  }
1266
1266
 
1267
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1267
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1268
1268
 
1269
1269
  /*
1270
1270
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1303,7 +1303,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
1303
1303
  },
1304
1304
  };
1305
1305
 
1306
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1306
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1307
1307
  /*
1308
1308
  * Copyright (c) Microsoft Corporation. All rights reserved.
1309
1309
  * Licensed under the MIT License.
@@ -1578,12 +1578,12 @@ class Logger {
1578
1578
  }
1579
1579
  }
1580
1580
 
1581
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1581
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1582
1582
  /* eslint-disable header/header */
1583
1583
  const name$1 = "@azure/msal-common";
1584
- const version$1 = "16.0.2";
1584
+ const version$1 = "16.0.3";
1585
1585
 
1586
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1586
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1587
1587
  /*
1588
1588
  * Copyright (c) Microsoft Corporation. All rights reserved.
1589
1589
  * Licensed under the MIT License.
@@ -1603,7 +1603,7 @@ const AzureCloudInstance = {
1603
1603
  AzureUsGovernment: "https://login.microsoftonline.us",
1604
1604
  };
1605
1605
 
1606
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1606
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1607
1607
  /*
1608
1608
  * Copyright (c) Microsoft Corporation. All rights reserved.
1609
1609
  * Licensed under the MIT License.
@@ -1685,7 +1685,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1685
1685
  return updatedAccountInfo;
1686
1686
  }
1687
1687
 
1688
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1688
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1689
1689
 
1690
1690
  /*
1691
1691
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1765,7 +1765,7 @@ function checkMaxAge(authTime, maxAge) {
1765
1765
  }
1766
1766
  }
1767
1767
 
1768
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1768
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1769
1769
 
1770
1770
  /*
1771
1771
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1922,7 +1922,7 @@ class UrlString {
1922
1922
  }
1923
1923
  }
1924
1924
 
1925
- /*! @azure/msal-common v16.0.2 2026-01-17 */
1925
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1926
1926
 
1927
1927
  /*
1928
1928
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2064,7 +2064,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2064
2064
  return null;
2065
2065
  }
2066
2066
 
2067
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2067
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2068
2068
  /*
2069
2069
  * Copyright (c) Microsoft Corporation. All rights reserved.
2070
2070
  * Licensed under the MIT License.
@@ -2072,7 +2072,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2072
2072
  const cacheQuotaExceeded = "cache_quota_exceeded";
2073
2073
  const cacheErrorUnknown = "cache_error_unknown";
2074
2074
 
2075
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2075
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2076
2076
 
2077
2077
  /*
2078
2078
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2110,7 +2110,7 @@ function createCacheError(e) {
2110
2110
  }
2111
2111
  }
2112
2112
 
2113
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2113
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2114
2114
 
2115
2115
  /*
2116
2116
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2148,7 +2148,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2148
2148
  };
2149
2149
  }
2150
2150
 
2151
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2151
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2152
2152
  /*
2153
2153
  * Copyright (c) Microsoft Corporation. All rights reserved.
2154
2154
  * Licensed under the MIT License.
@@ -2163,7 +2163,7 @@ const AuthorityType = {
2163
2163
  Ciam: 3,
2164
2164
  };
2165
2165
 
2166
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2166
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2167
2167
  /*
2168
2168
  * Copyright (c) Microsoft Corporation. All rights reserved.
2169
2169
  * Licensed under the MIT License.
@@ -2185,7 +2185,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2185
2185
  return null;
2186
2186
  }
2187
2187
 
2188
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2188
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2189
2189
  /*
2190
2190
  * Copyright (c) Microsoft Corporation. All rights reserved.
2191
2191
  * Licensed under the MIT License.
@@ -2209,11 +2209,18 @@ const ProtocolMode = {
2209
2209
  EAR: "EAR",
2210
2210
  };
2211
2211
 
2212
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2212
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2213
2213
  /**
2214
2214
  * Returns the AccountInfo interface for this account.
2215
2215
  */
2216
2216
  function getAccountInfo(accountEntity) {
2217
+ const tenantProfiles = accountEntity.tenantProfiles || [];
2218
+ // Ensure at least the home tenant profile exists
2219
+ if (tenantProfiles.length === 0 &&
2220
+ accountEntity.realm &&
2221
+ accountEntity.localAccountId) {
2222
+ tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
2223
+ }
2217
2224
  return {
2218
2225
  homeAccountId: accountEntity.homeAccountId,
2219
2226
  environment: accountEntity.environment,
@@ -2225,7 +2232,7 @@ function getAccountInfo(accountEntity) {
2225
2232
  nativeAccountId: accountEntity.nativeAccountId,
2226
2233
  authorityType: accountEntity.authorityType,
2227
2234
  // Deserialize tenant profiles array into a Map
2228
- tenantProfiles: new Map((accountEntity.tenantProfiles || []).map((tenantProfile) => {
2235
+ tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
2229
2236
  return [tenantProfile.tenantId, tenantProfile];
2230
2237
  })),
2231
2238
  dataBoundary: accountEntity.dataBoundary,
@@ -2314,6 +2321,14 @@ function createAccountEntity(accountDetails, authority, base64Decode) {
2314
2321
  * @returns
2315
2322
  */
2316
2323
  function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
2324
+ // Serialize tenant profiles map into an array
2325
+ const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
2326
+ // Ensure at least the home tenant profile exists
2327
+ if (tenantProfiles.length === 0 &&
2328
+ accountInfo.tenantId &&
2329
+ accountInfo.localAccountId) {
2330
+ tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
2331
+ }
2317
2332
  return {
2318
2333
  authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
2319
2334
  homeAccountId: accountInfo.homeAccountId,
@@ -2326,7 +2341,7 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
2326
2341
  name: accountInfo.name,
2327
2342
  cloudGraphHostName: cloudGraphHostName,
2328
2343
  msGraphHost: msGraphHost,
2329
- tenantProfiles: Array.from(accountInfo.tenantProfiles?.values() || []),
2344
+ tenantProfiles: tenantProfiles,
2330
2345
  dataBoundary: accountInfo.dataBoundary,
2331
2346
  };
2332
2347
  }
@@ -2369,7 +2384,7 @@ function isAccountEntity(entity) {
2369
2384
  entity.hasOwnProperty("authorityType"));
2370
2385
  }
2371
2386
 
2372
- /*! @azure/msal-common v16.0.2 2026-01-17 */
2387
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2373
2388
 
2374
2389
  /*
2375
2390
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2535,13 +2550,13 @@ class CacheManager {
2535
2550
  * @param storeInCache {?StoreInCache}
2536
2551
  * @param correlationId {?string} correlation id
2537
2552
  */
2538
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
2553
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
2539
2554
  if (!cacheRecord) {
2540
2555
  throw createClientAuthError(invalidCacheRecord);
2541
2556
  }
2542
2557
  try {
2543
2558
  if (!!cacheRecord.account) {
2544
- await this.setAccount(cacheRecord.account, correlationId, kmsi);
2559
+ await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
2545
2560
  }
2546
2561
  if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
2547
2562
  await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
@@ -3466,7 +3481,7 @@ class DefaultStorageClass extends CacheManager {
3466
3481
  }
3467
3482
  }
3468
3483
 
3469
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3484
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3470
3485
  /*
3471
3486
  * Copyright (c) Microsoft Corporation. All rights reserved.
3472
3487
  * Licensed under the MIT License.
@@ -3507,7 +3522,7 @@ const IntFields = new Set([
3507
3522
  "upgradedCacheCount",
3508
3523
  ]);
3509
3524
 
3510
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3525
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3511
3526
 
3512
3527
  /*
3513
3528
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3562,7 +3577,7 @@ class StubPerformanceClient {
3562
3577
  }
3563
3578
  }
3564
3579
 
3565
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3580
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3566
3581
 
3567
3582
  /*
3568
3583
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3656,7 +3671,7 @@ function isOidcProtocolMode(config) {
3656
3671
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3657
3672
  }
3658
3673
 
3659
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3674
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3660
3675
 
3661
3676
  /*
3662
3677
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3675,7 +3690,7 @@ class ServerError extends AuthError {
3675
3690
  }
3676
3691
  }
3677
3692
 
3678
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3693
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3679
3694
  /*
3680
3695
  * Copyright (c) Microsoft Corporation. All rights reserved.
3681
3696
  * Licensed under the MIT License.
@@ -3703,7 +3718,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
3703
3718
  uxNotAllowed: uxNotAllowed
3704
3719
  });
3705
3720
 
3706
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3721
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3707
3722
 
3708
3723
  /*
3709
3724
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3769,7 +3784,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
3769
3784
  return new InteractionRequiredAuthError(errorCode, errorMessage);
3770
3785
  }
3771
3786
 
3772
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3787
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3773
3788
 
3774
3789
  /*
3775
3790
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3837,7 +3852,7 @@ function parseRequestState(base64Decode, state) {
3837
3852
  }
3838
3853
  }
3839
3854
 
3840
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3855
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3841
3856
  /*
3842
3857
  * Copyright (c) Microsoft Corporation. All rights reserved.
3843
3858
  * Licensed under the MIT License.
@@ -3902,7 +3917,7 @@ function wasClockTurnedBack(cachedAt) {
3902
3917
  return cachedAtSec > nowSeconds();
3903
3918
  }
3904
3919
 
3905
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3920
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3906
3921
  /*
3907
3922
  * Copyright (c) Microsoft Corporation. All rights reserved.
3908
3923
  * Licensed under the MIT License.
@@ -3973,7 +3988,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
3973
3988
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
3974
3989
  const SetUserData = "setUserData";
3975
3990
 
3976
- /*! @azure/msal-common v16.0.2 2026-01-17 */
3991
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3977
3992
  /*
3978
3993
  * Copyright (c) Microsoft Corporation. All rights reserved.
3979
3994
  * Licensed under the MIT License.
@@ -4068,7 +4083,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4068
4083
  };
4069
4084
  };
4070
4085
 
4071
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4086
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4072
4087
 
4073
4088
  /*
4074
4089
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4148,7 +4163,7 @@ class PopTokenGenerator {
4148
4163
  }
4149
4164
  }
4150
4165
 
4151
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4166
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4152
4167
  /*
4153
4168
  * Copyright (c) Microsoft Corporation. All rights reserved.
4154
4169
  * Licensed under the MIT License.
@@ -4175,7 +4190,7 @@ class PopTokenGenerator {
4175
4190
  }
4176
4191
  }
4177
4192
 
4178
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4193
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4179
4194
 
4180
4195
  /*
4181
4196
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4434,7 +4449,7 @@ function isAuthorityMetadataExpired(metadata) {
4434
4449
  return metadata.expiresAt <= nowSeconds();
4435
4450
  }
4436
4451
 
4437
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4452
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4438
4453
 
4439
4454
  /*
4440
4455
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4501,7 +4516,7 @@ class ResponseHandler {
4501
4516
  * @param serverTokenResponse
4502
4517
  * @param authority
4503
4518
  */
4504
- async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4519
+ async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4505
4520
  // create an idToken object (not entity)
4506
4521
  let idTokenClaims;
4507
4522
  if (serverTokenResponse.id_token) {
@@ -4548,14 +4563,19 @@ class ResponseHandler {
4548
4563
  if (handlingRefreshTokenResponse &&
4549
4564
  !forceCacheRefreshTokenResponse &&
4550
4565
  cacheRecord.account) {
4551
- const key = this.cacheStorage.generateAccountKey(getAccountInfo(cacheRecord.account));
4552
- const account = this.cacheStorage.getAccount(key, request.correlationId);
4553
- if (!account) {
4566
+ const cachedAccounts = this.cacheStorage.getAllAccounts({
4567
+ homeAccountId: cacheRecord.account.homeAccountId,
4568
+ environment: cacheRecord.account.environment,
4569
+ }, request.correlationId);
4570
+ if (cachedAccounts.length < 1) {
4554
4571
  this.logger.warning("1gmt66", request.correlationId);
4572
+ this.performanceClient?.addFields({
4573
+ acntLoggedOut: true,
4574
+ }, request.correlationId);
4555
4575
  return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
4556
4576
  }
4557
4577
  }
4558
- await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
4578
+ await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
4559
4579
  }
4560
4580
  finally {
4561
4581
  if (this.persistencePlugin &&
@@ -4765,7 +4785,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
4765
4785
  return baseAccount;
4766
4786
  }
4767
4787
 
4768
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4788
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4769
4789
  /*
4770
4790
  * Copyright (c) Microsoft Corporation. All rights reserved.
4771
4791
  * Licensed under the MIT License.
@@ -4775,7 +4795,7 @@ const CcsCredentialType = {
4775
4795
  UPN: "UPN",
4776
4796
  };
4777
4797
 
4778
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4798
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4779
4799
  /*
4780
4800
  * Copyright (c) Microsoft Corporation. All rights reserved.
4781
4801
  * Licensed under the MIT License.
@@ -4793,7 +4813,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
4793
4813
  }
4794
4814
  }
4795
4815
 
4796
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4816
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4797
4817
  /*
4798
4818
  * Copyright (c) Microsoft Corporation. All rights reserved.
4799
4819
  * Licensed under the MIT License.
@@ -4814,7 +4834,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
4814
4834
  };
4815
4835
  }
4816
4836
 
4817
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4837
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4818
4838
 
4819
4839
  /*
4820
4840
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4900,7 +4920,7 @@ class ThrottlingUtils {
4900
4920
  }
4901
4921
  }
4902
4922
 
4903
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4923
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4904
4924
 
4905
4925
  /*
4906
4926
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4931,7 +4951,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
4931
4951
  return new NetworkError(error, httpStatus, responseHeaders);
4932
4952
  }
4933
4953
 
4934
- /*! @azure/msal-common v16.0.2 2026-01-17 */
4954
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4935
4955
 
4936
4956
  /*
4937
4957
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5045,7 +5065,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
5045
5065
  return response;
5046
5066
  }
5047
5067
 
5048
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5068
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5049
5069
  /*
5050
5070
  * Copyright (c) Microsoft Corporation. All rights reserved.
5051
5071
  * Licensed under the MIT License.
@@ -5057,7 +5077,7 @@ function isOpenIdConfigResponse(response) {
5057
5077
  response.hasOwnProperty("jwks_uri"));
5058
5078
  }
5059
5079
 
5060
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5080
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5061
5081
  /*
5062
5082
  * Copyright (c) Microsoft Corporation. All rights reserved.
5063
5083
  * Licensed under the MIT License.
@@ -5067,7 +5087,7 @@ function isCloudInstanceDiscoveryResponse(response) {
5067
5087
  response.hasOwnProperty("metadata"));
5068
5088
  }
5069
5089
 
5070
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5090
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5071
5091
  /*
5072
5092
  * Copyright (c) Microsoft Corporation. All rights reserved.
5073
5093
  * Licensed under the MIT License.
@@ -5077,7 +5097,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
5077
5097
  response.hasOwnProperty("error_description"));
5078
5098
  }
5079
5099
 
5080
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5100
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5081
5101
 
5082
5102
  /*
5083
5103
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5182,7 +5202,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5182
5202
  },
5183
5203
  };
5184
5204
 
5185
- /*! @azure/msal-common v16.0.2 2026-01-17 */
5205
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5186
5206
 
5187
5207
  /*
5188
5208
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6002,7 +6022,7 @@ function buildStaticAuthorityOptions(authOptions) {
6002
6022
  };
6003
6023
  }
6004
6024
 
6005
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6025
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6006
6026
 
6007
6027
  /*
6008
6028
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6036,7 +6056,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
6036
6056
  }
6037
6057
  }
6038
6058
 
6039
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6059
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6040
6060
 
6041
6061
  /*
6042
6062
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6074,7 +6094,7 @@ class AuthorizationCodeClient {
6074
6094
  * authorization_code_grant
6075
6095
  * @param request
6076
6096
  */
6077
- async acquireToken(request, authCodePayload) {
6097
+ async acquireToken(request, apiId, authCodePayload) {
6078
6098
  if (!request.code) {
6079
6099
  throw createClientAuthError(requestCannotBeMade);
6080
6100
  }
@@ -6089,7 +6109,7 @@ class AuthorizationCodeClient {
6089
6109
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
6090
6110
  // Validate response. This function throws a server error if an error is returned by the server.
6091
6111
  responseHandler.validateTokenResponse(response.body, request.correlationId);
6092
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
6112
+ return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
6093
6113
  }
6094
6114
  /**
6095
6115
  * Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
@@ -6296,7 +6316,7 @@ class AuthorizationCodeClient {
6296
6316
  }
6297
6317
  }
6298
6318
 
6299
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6319
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6300
6320
 
6301
6321
  /*
6302
6322
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6326,20 +6346,20 @@ class RefreshTokenClient {
6326
6346
  // set performance telemetry client
6327
6347
  this.performanceClient = performanceClient;
6328
6348
  }
6329
- async acquireToken(request) {
6349
+ async acquireToken(request, apiId) {
6330
6350
  const reqTimestamp = nowSeconds();
6331
6351
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
6332
6352
  // Retrieve requestId from response headers
6333
6353
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
6334
6354
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
6335
6355
  responseHandler.validateTokenResponse(response.body, request.correlationId);
6336
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId);
6356
+ return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
6337
6357
  }
6338
6358
  /**
6339
6359
  * Gets cached refresh token and attaches to request, then calls acquireToken API
6340
6360
  * @param request
6341
6361
  */
6342
- async acquireTokenByRefreshToken(request) {
6362
+ async acquireTokenByRefreshToken(request, apiId) {
6343
6363
  // Cannot renew token if no request object is given.
6344
6364
  if (!request) {
6345
6365
  throw createClientConfigurationError(tokenRequestEmpty);
@@ -6353,7 +6373,7 @@ class RefreshTokenClient {
6353
6373
  // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
6354
6374
  if (isFOCI) {
6355
6375
  try {
6356
- return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
6376
+ return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
6357
6377
  }
6358
6378
  catch (e) {
6359
6379
  const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
@@ -6364,7 +6384,7 @@ class RefreshTokenClient {
6364
6384
  e.subError === CLIENT_MISMATCH_ERROR;
6365
6385
  // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
6366
6386
  if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
6367
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6387
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6368
6388
  // throw in all other cases
6369
6389
  }
6370
6390
  else {
@@ -6373,13 +6393,13 @@ class RefreshTokenClient {
6373
6393
  }
6374
6394
  }
6375
6395
  // fall back to application refresh token acquisition
6376
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6396
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6377
6397
  }
6378
6398
  /**
6379
6399
  * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
6380
6400
  * @param request
6381
6401
  */
6382
- async acquireTokenWithCachedRefreshToken(request, foci) {
6402
+ async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
6383
6403
  // fetches family RT or application RT based on FOCI value
6384
6404
  const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
6385
6405
  if (!refreshToken) {
@@ -6408,7 +6428,7 @@ class RefreshTokenClient {
6408
6428
  },
6409
6429
  };
6410
6430
  try {
6411
- return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
6431
+ return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
6412
6432
  }
6413
6433
  catch (e) {
6414
6434
  if (e instanceof InteractionRequiredAuthError) {
@@ -6521,7 +6541,7 @@ class RefreshTokenClient {
6521
6541
  }
6522
6542
  }
6523
6543
 
6524
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6544
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6525
6545
 
6526
6546
  /*
6527
6547
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6630,7 +6650,7 @@ class SilentFlowClient {
6630
6650
  }
6631
6651
  }
6632
6652
 
6633
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6653
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6634
6654
 
6635
6655
  /*
6636
6656
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6645,7 +6665,7 @@ const StubbedNetworkModule = {
6645
6665
  },
6646
6666
  };
6647
6667
 
6648
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6668
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6649
6669
 
6650
6670
  /*
6651
6671
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6869,7 +6889,7 @@ function extractLoginHint(account) {
6869
6889
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6870
6890
  }
6871
6891
 
6872
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6892
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6873
6893
 
6874
6894
  /*
6875
6895
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6927,7 +6947,7 @@ class AuthenticationHeaderParser {
6927
6947
  }
6928
6948
  }
6929
6949
 
6930
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6950
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6931
6951
  /*
6932
6952
  * Copyright (c) Microsoft Corporation. All rights reserved.
6933
6953
  * Licensed under the MIT License.
@@ -6944,7 +6964,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
6944
6964
  unexpectedError: unexpectedError
6945
6965
  });
6946
6966
 
6947
- /*! @azure/msal-common v16.0.2 2026-01-17 */
6967
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6948
6968
 
6949
6969
  /*
6950
6970
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7205,7 +7225,7 @@ class ServerTelemetryManager {
7205
7225
  }
7206
7226
  }
7207
7227
 
7208
- /*! @azure/msal-common v16.0.2 2026-01-17 */
7228
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7209
7229
 
7210
7230
  /*
7211
7231
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7226,7 +7246,7 @@ function createJoseHeaderError(code) {
7226
7246
  return new JoseHeaderError(code);
7227
7247
  }
7228
7248
 
7229
- /*! @azure/msal-common v16.0.2 2026-01-17 */
7249
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7230
7250
  /*
7231
7251
  * Copyright (c) Microsoft Corporation. All rights reserved.
7232
7252
  * Licensed under the MIT License.
@@ -7234,7 +7254,7 @@ function createJoseHeaderError(code) {
7234
7254
  const missingKidError = "missing_kid_error";
7235
7255
  const missingAlgError = "missing_alg_error";
7236
7256
 
7237
- /*! @azure/msal-common v16.0.2 2026-01-17 */
7257
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7238
7258
 
7239
7259
  /*
7240
7260
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7274,7 +7294,7 @@ class JoseHeader {
7274
7294
  }
7275
7295
  }
7276
7296
 
7277
- /*! @azure/msal-common v16.0.2 2026-01-17 */
7297
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7278
7298
 
7279
7299
  /*
7280
7300
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7973,6 +7993,7 @@ const InMemoryCacheKeys = {
7973
7993
  * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
7974
7994
  * 0-99 Silent Flow
7975
7995
  * 800-899 Auth Code Flow
7996
+ * 900-999 Misc
7976
7997
  */
7977
7998
  const ApiId = {
7978
7999
  acquireTokenRedirect: 861,
@@ -7984,6 +8005,30 @@ const ApiId = {
7984
8005
  acquireTokenSilent_silentFlow: 61,
7985
8006
  logout: 961,
7986
8007
  logoutPopup: 962,
8008
+ hydrateCache: 963,
8009
+ loadExternalTokens: 964,
8010
+ };
8011
+ /**
8012
+ * API Names for Telemetry purposes.
8013
+ */
8014
+ const ApiName = {
8015
+ 861: "acquireTokenRedirect",
8016
+ 862: "acquireTokenPopup",
8017
+ 863: "ssoSilent",
8018
+ 864: "acquireTokenSilent_authCode",
8019
+ 865: "handleRedirectPromise",
8020
+ 866: "acquireTokenByCode",
8021
+ 61: "acquireTokenSilent_silentFlow",
8022
+ 961: "logout",
8023
+ 962: "logoutPopup",
8024
+ 963: "hydrateCache",
8025
+ 964: "loadExternalTokens",
8026
+ };
8027
+ const apiIdToName = (id) => {
8028
+ if (typeof id === "number" && id in ApiName) {
8029
+ return ApiName[id];
8030
+ }
8031
+ return "unknown";
7987
8032
  };
7988
8033
  /*
7989
8034
  * Interaction type of the API - used for state and telemetry
@@ -10075,7 +10120,7 @@ const EventType = {
10075
10120
 
10076
10121
  /* eslint-disable header/header */
10077
10122
  const name = "@azure/msal-browser";
10078
- const version = "5.0.2";
10123
+ const version = "5.1.0";
10079
10124
 
10080
10125
  /*
10081
10126
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10647,17 +10692,22 @@ class BrowserCacheManager extends CacheManager {
10647
10692
  !isAccountEntity(parsedAccount)) {
10648
10693
  return null;
10649
10694
  }
10650
- return CacheManager.toObject({}, parsedAccount);
10695
+ const account = CacheManager.toObject({}, parsedAccount);
10696
+ this.performanceClient.addFields({
10697
+ accountCachedBy: apiIdToName(account.cachedByApiId),
10698
+ }, correlationId);
10699
+ return account;
10651
10700
  }
10652
10701
  /**
10653
10702
  * set account entity in the platform cache
10654
10703
  * @param account
10655
10704
  */
10656
- async setAccount(account, correlationId, kmsi) {
10705
+ async setAccount(account, correlationId, kmsi, apiId) {
10657
10706
  this.logger.trace("1bz3wr", correlationId);
10658
10707
  const key = this.generateAccountKey(getAccountInfo(account));
10659
10708
  const timestamp = Date.now().toString();
10660
10709
  account.lastUpdatedAt = timestamp;
10710
+ account.cachedByApiId = apiId;
10661
10711
  await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
10662
10712
  this.addAccountKeyToMap(key, correlationId);
10663
10713
  this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
@@ -11368,7 +11418,7 @@ class BrowserCacheManager extends CacheManager {
11368
11418
  * @param request
11369
11419
  */
11370
11420
  async hydrateCache(result, request) {
11371
- const idTokenEntity = createIdTokenEntity(result.account?.homeAccountId, result.account?.environment, result.idToken, this.clientId, result.tenantId);
11421
+ const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
11372
11422
  /**
11373
11423
  * meta data for cache stores time in seconds from epoch
11374
11424
  * AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
@@ -11376,7 +11426,7 @@ class BrowserCacheManager extends CacheManager {
11376
11426
  *
11377
11427
  * The next MSAL VFuture should map these both to same value if possible
11378
11428
  */
11379
- const accessTokenEntity = createAccessTokenEntity(result.account?.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
11429
+ const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
11380
11430
  // Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
11381
11431
  result.expiresOn
11382
11432
  ? toSecondsFromDate(result.expiresOn)
@@ -11389,7 +11439,7 @@ class BrowserCacheManager extends CacheManager {
11389
11439
  idToken: idTokenEntity,
11390
11440
  accessToken: accessTokenEntity,
11391
11441
  };
11392
- return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
11442
+ return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
11393
11443
  }
11394
11444
  /**
11395
11445
  * saves a cache record
@@ -11397,9 +11447,9 @@ class BrowserCacheManager extends CacheManager {
11397
11447
  * @param storeInCache {?StoreInCache}
11398
11448
  * @param correlationId {?string} correlation id
11399
11449
  */
11400
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
11450
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
11401
11451
  try {
11402
- await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
11452
+ await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
11403
11453
  }
11404
11454
  catch (e) {
11405
11455
  if (e instanceof CacheError &&
@@ -12083,7 +12133,7 @@ class InteractionHandler {
12083
12133
  * Function to handle response parameters from hash.
12084
12134
  * @param locationHash
12085
12135
  */
12086
- async handleCodeResponse(response, request) {
12136
+ async handleCodeResponse(response, request, apiId) {
12087
12137
  let authCodeResponse;
12088
12138
  try {
12089
12139
  authCodeResponse = getAuthorizationCodePayload(response, request.state);
@@ -12098,7 +12148,7 @@ class InteractionHandler {
12098
12148
  throw e;
12099
12149
  }
12100
12150
  }
12101
- return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
12151
+ return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
12102
12152
  }
12103
12153
  /**
12104
12154
  * Process auth code response from AAD
@@ -12107,7 +12157,7 @@ class InteractionHandler {
12107
12157
  * @param validateNonce
12108
12158
  * @returns
12109
12159
  */
12110
- async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
12160
+ async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
12111
12161
  this.logger.trace("0mf2hb", request.correlationId);
12112
12162
  // Assign code to request
12113
12163
  this.authCodeRequest.code = authCodeResponse.code;
@@ -12128,7 +12178,7 @@ class InteractionHandler {
12128
12178
  }
12129
12179
  }
12130
12180
  // Acquire token with retrieved code.
12131
- const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, authCodeResponse));
12181
+ const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
12132
12182
  return tokenResponse;
12133
12183
  }
12134
12184
  /**
@@ -12662,7 +12712,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
12662
12712
  */
12663
12713
  async cacheAccount(accountEntity, kmsi) {
12664
12714
  // Store the account info and hence `nativeAccountId` in browser cache
12665
- await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
12715
+ await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
12666
12716
  // Remove any existing cached tokens for this account in browser storage
12667
12717
  this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
12668
12718
  }
@@ -12691,7 +12741,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
12691
12741
  idToken: cachedIdToken,
12692
12742
  accessToken: cachedAccessToken,
12693
12743
  };
12694
- return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
12744
+ return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
12695
12745
  }
12696
12746
  getExpiresInValue(tokenType, expiresIn) {
12697
12747
  return tokenType === AuthenticationScheme$1.POP
@@ -13070,7 +13120,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
13070
13120
  // Create popup interaction handler.
13071
13121
  const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
13072
13122
  // Handle response from hash string.
13073
- const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
13123
+ const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
13074
13124
  return result;
13075
13125
  }
13076
13126
  /**
@@ -13117,7 +13167,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
13117
13167
  cloud_instance_name: decryptedData.cloud_instance_name,
13118
13168
  msgraph_host: decryptedData.msgraph_host,
13119
13169
  };
13120
- return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
13170
+ return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
13121
13171
  }
13122
13172
 
13123
13173
  /*
@@ -15025,7 +15075,7 @@ class SilentRefreshClient extends StandardInteractionClient {
15025
15075
  account: silentRequest.account,
15026
15076
  });
15027
15077
  // Send request to renew token. Auth module will throw errors if token cannot be renewed.
15028
- return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest).catch((e) => {
15078
+ return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
15029
15079
  e.setCorrelationId(this.correlationId);
15030
15080
  serverTelemetryManager.cacheFailedRequest(e);
15031
15081
  throw e;
@@ -15122,7 +15172,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
15122
15172
  msgraph_host: request.msGraphHost,
15123
15173
  cloud_graph_host_name: request.cloudGraphHostName,
15124
15174
  cloud_instance_host_name: request.cloudInstanceHostName,
15125
- }, silentRequest, false);
15175
+ }, silentRequest, this.apiId, false);
15126
15176
  }
15127
15177
  catch (e) {
15128
15178
  if (e instanceof AuthError) {
@@ -15935,7 +15985,7 @@ class StandardController {
15935
15985
  this.logger.verbose("16jycr", result.correlationId);
15936
15986
  // Account gets saved to browser storage regardless of native or not
15937
15987
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
15938
- await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
15988
+ await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
15939
15989
  if (result.fromPlatformBroker) {
15940
15990
  this.logger.verbose("1fxyu8", result.correlationId);
15941
15991
  // Tokens from native broker are stored in-memory
@@ -17266,7 +17316,7 @@ class NestedAppAuthController {
17266
17316
  async hydrateCache(result, request) {
17267
17317
  this.logger.verbose("16jycr", result.correlationId);
17268
17318
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
17269
- await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
17319
+ await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
17270
17320
  return this.browserStorage.hydrateCache(result, request);
17271
17321
  }
17272
17322
  }
@@ -17913,20 +17963,19 @@ async function loadExternalTokens(config, request, response, options, performanc
17913
17963
  const logger = new Logger(browserConfig.system.loggerOptions || {});
17914
17964
  const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
17915
17965
  const storage = new BrowserCacheManager(browserConfig.auth.clientId, browserConfig.cache, cryptoOps, logger, browserConfig.telemetry.client, new EventHandler(logger), buildStaticAuthorityOptions(browserConfig.auth));
17916
- const authority = request.authority
17917
- ? new Authority(Authority.generateAuthority(request.authority, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, request.correlationId || createNewGuid(), browserConfig.telemetry.client)
17918
- : undefined;
17919
- const cacheRecordAccount = await invokeAsync(loadAccount, LoadAccount, logger, performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, storage, logger, cryptoOps, idTokenClaims, authority);
17966
+ const authorityString = request.authority || browserConfig.auth.authority;
17967
+ const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, correlationId, performanceClient);
17968
+ const cacheRecordAccount = await invokeAsync(loadAccount, LoadAccount, logger, performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, storage, logger, cryptoOps, authority, idTokenClaims);
17920
17969
  const idToken = await invokeAsync(loadIdToken, LoadIdToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, correlationId, storage, logger, config.auth.clientId);
17921
17970
  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);
17922
- const refreshToken = await invokeAsync(loadRefreshToken, LoadRefreshToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, kmsi, correlationId, storage, logger, config.auth.clientId);
17971
+ const refreshToken = await invokeAsync(loadRefreshToken, LoadRefreshToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, kmsi, correlationId, storage, logger, config.auth.clientId, performanceClient);
17923
17972
  rootMeasurement.end({ success: true }, undefined, getAccountInfo(cacheRecordAccount));
17924
17973
  return generateAuthenticationResult(request, {
17925
17974
  account: cacheRecordAccount,
17926
17975
  idToken,
17927
17976
  accessToken,
17928
17977
  refreshToken,
17929
- }, idTokenClaims, authority);
17978
+ }, authority, idTokenClaims);
17930
17979
  }
17931
17980
  catch (error) {
17932
17981
  rootMeasurement.end({ success: false }, error);
@@ -17942,23 +17991,23 @@ async function loadExternalTokens(config, request, response, options, performanc
17942
17991
  * @param requestHomeAccountId
17943
17992
  * @returns `AccountEntity`
17944
17993
  */
17945
- async function loadAccount(request, clientInfo, correlationId, storage, logger, cryptoObj, idTokenClaims, authority) {
17994
+ async function loadAccount(request, clientInfo, correlationId, storage, logger, cryptoObj, authority, idTokenClaims) {
17946
17995
  logger.verbose("0ke46k", correlationId);
17947
17996
  if (request.account) {
17948
17997
  const accountEntity = createAccountEntityFromAccountInfo(request.account);
17949
- await storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}));
17998
+ await storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
17950
17999
  return accountEntity;
17951
18000
  }
17952
- else if (!authority || (!clientInfo && !idTokenClaims)) {
17953
- logger.error("1ychpz", correlationId);
18001
+ else if (!clientInfo && !idTokenClaims) {
18002
+ logger.error("0hzcn4", correlationId);
17954
18003
  throw createBrowserAuthError(unableToLoadToken);
17955
18004
  }
17956
18005
  const homeAccountId = generateHomeAccountId(clientInfo, authority.authorityType, logger, cryptoObj, correlationId, idTokenClaims);
17957
18006
  const claimsTenantId = idTokenClaims?.tid;
17958
- const cachedAccount = buildAccountToCache(storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
18007
+ const cachedAccount = buildAccountToCache(storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.getPreferredCache(), claimsTenantId, undefined, // authCodePayload
17959
18008
  undefined, // nativeAccountId
17960
18009
  logger);
17961
- await storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}));
18010
+ await storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
17962
18011
  return cachedAccount;
17963
18012
  }
17964
18013
  /**
@@ -18021,14 +18070,20 @@ async function loadAccessToken(request, response, homeAccountId, environment, te
18021
18070
  * @param environment
18022
18071
  * @returns `RefreshTokenEntity`
18023
18072
  */
18024
- async function loadRefreshToken(response, homeAccountId, environment, kmsi, correlationId, storage, logger, clientId) {
18073
+ async function loadRefreshToken(response, homeAccountId, environment, kmsi, correlationId, storage, logger, clientId, performanceClient) {
18025
18074
  if (!response.refresh_token) {
18026
18075
  logger.verbose("1l7um5", correlationId);
18027
18076
  return null;
18028
18077
  }
18078
+ const expiresOn = response.refresh_token_expires_in
18079
+ ? response.refresh_token_expires_in + nowSeconds()
18080
+ : undefined;
18081
+ performanceClient.addFields({
18082
+ extRtExpiresOnSeconds: expiresOn,
18083
+ }, correlationId);
18029
18084
  logger.verbose("0qy8ev", correlationId);
18030
18085
  const refreshTokenEntity = createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, clientId, response.foci, undefined, // userAssertionHash
18031
- response.refresh_token_expires_in);
18086
+ expiresOn);
18032
18087
  await storage.setRefreshTokenCredential(refreshTokenEntity, correlationId, kmsi);
18033
18088
  return refreshTokenEntity;
18034
18089
  }
@@ -18040,7 +18095,7 @@ async function loadRefreshToken(response, homeAccountId, environment, kmsi, corr
18040
18095
  * @param authority
18041
18096
  * @returns `AuthenticationResult`
18042
18097
  */
18043
- function generateAuthenticationResult(request, cacheRecord, idTokenClaims, authority) {
18098
+ function generateAuthenticationResult(request, cacheRecord, authority, idTokenClaims) {
18044
18099
  let accessToken = "";
18045
18100
  let responseScopes = [];
18046
18101
  let expiresOn = null;
@@ -18054,7 +18109,7 @@ function generateAuthenticationResult(request, cacheRecord, idTokenClaims, autho
18054
18109
  }
18055
18110
  const accountEntity = cacheRecord.account;
18056
18111
  return {
18057
- authority: authority ? authority.canonicalAuthority : "",
18112
+ authority: authority.canonicalAuthority,
18058
18113
  uniqueId: cacheRecord.account.localAccountId,
18059
18114
  tenantId: cacheRecord.account.realm,
18060
18115
  scopes: responseScopes,