@azure/msal-browser 5.0.1 → 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,4 +1,4 @@
1
- /*! @azure/msal-browser v5.0.1 2026-01-16 */
1
+ /*! @azure/msal-browser v5.1.0 2026-01-28 */
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.1 2026-01-16 */
9
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
241
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
291
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
322
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
342
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
439
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
462
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
516
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
600
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
795
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1162
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1271
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1310
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1585
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1586
1586
  /* eslint-disable header/header */
1587
1587
  const name$1 = "@azure/msal-common";
1588
- const version$1 = "16.0.1";
1588
+ const version$1 = "16.0.3";
1589
1589
 
1590
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1590
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1610
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1692
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1772
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
1929
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2071
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2079
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2117
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2155
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2170
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
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.1 2026-01-16 */
2192
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2193
2193
  /*
2194
2194
  * Copyright (c) Microsoft Corporation. All rights reserved.
2195
2195
  * Licensed under the MIT License.
@@ -2213,11 +2213,18 @@
2213
2213
  EAR: "EAR",
2214
2214
  };
2215
2215
 
2216
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2216
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2217
2217
  /**
2218
2218
  * Returns the AccountInfo interface for this account.
2219
2219
  */
2220
2220
  function getAccountInfo(accountEntity) {
2221
+ const tenantProfiles = accountEntity.tenantProfiles || [];
2222
+ // Ensure at least the home tenant profile exists
2223
+ if (tenantProfiles.length === 0 &&
2224
+ accountEntity.realm &&
2225
+ accountEntity.localAccountId) {
2226
+ tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
2227
+ }
2221
2228
  return {
2222
2229
  homeAccountId: accountEntity.homeAccountId,
2223
2230
  environment: accountEntity.environment,
@@ -2229,7 +2236,7 @@
2229
2236
  nativeAccountId: accountEntity.nativeAccountId,
2230
2237
  authorityType: accountEntity.authorityType,
2231
2238
  // Deserialize tenant profiles array into a Map
2232
- tenantProfiles: new Map((accountEntity.tenantProfiles || []).map((tenantProfile) => {
2239
+ tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
2233
2240
  return [tenantProfile.tenantId, tenantProfile];
2234
2241
  })),
2235
2242
  dataBoundary: accountEntity.dataBoundary,
@@ -2318,6 +2325,14 @@
2318
2325
  * @returns
2319
2326
  */
2320
2327
  function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
2328
+ // Serialize tenant profiles map into an array
2329
+ const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
2330
+ // Ensure at least the home tenant profile exists
2331
+ if (tenantProfiles.length === 0 &&
2332
+ accountInfo.tenantId &&
2333
+ accountInfo.localAccountId) {
2334
+ tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
2335
+ }
2321
2336
  return {
2322
2337
  authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
2323
2338
  homeAccountId: accountInfo.homeAccountId,
@@ -2330,7 +2345,7 @@
2330
2345
  name: accountInfo.name,
2331
2346
  cloudGraphHostName: cloudGraphHostName,
2332
2347
  msGraphHost: msGraphHost,
2333
- tenantProfiles: Array.from(accountInfo.tenantProfiles?.values() || []),
2348
+ tenantProfiles: tenantProfiles,
2334
2349
  dataBoundary: accountInfo.dataBoundary,
2335
2350
  };
2336
2351
  }
@@ -2373,7 +2388,7 @@
2373
2388
  entity.hasOwnProperty("authorityType"));
2374
2389
  }
2375
2390
 
2376
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2391
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2377
2392
 
2378
2393
  /*
2379
2394
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2539,13 +2554,13 @@
2539
2554
  * @param storeInCache {?StoreInCache}
2540
2555
  * @param correlationId {?string} correlation id
2541
2556
  */
2542
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
2557
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
2543
2558
  if (!cacheRecord) {
2544
2559
  throw createClientAuthError(invalidCacheRecord);
2545
2560
  }
2546
2561
  try {
2547
2562
  if (!!cacheRecord.account) {
2548
- await this.setAccount(cacheRecord.account, correlationId, kmsi);
2563
+ await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
2549
2564
  }
2550
2565
  if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
2551
2566
  await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
@@ -3470,7 +3485,7 @@
3470
3485
  }
3471
3486
  }
3472
3487
 
3473
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3488
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3474
3489
  /*
3475
3490
  * Copyright (c) Microsoft Corporation. All rights reserved.
3476
3491
  * Licensed under the MIT License.
@@ -3511,7 +3526,7 @@
3511
3526
  "upgradedCacheCount",
3512
3527
  ]);
3513
3528
 
3514
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3529
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3515
3530
 
3516
3531
  /*
3517
3532
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3566,7 +3581,7 @@
3566
3581
  }
3567
3582
  }
3568
3583
 
3569
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3584
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3570
3585
 
3571
3586
  /*
3572
3587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3660,7 +3675,7 @@
3660
3675
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3661
3676
  }
3662
3677
 
3663
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3678
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3664
3679
 
3665
3680
  /*
3666
3681
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3679,7 +3694,7 @@
3679
3694
  }
3680
3695
  }
3681
3696
 
3682
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3697
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3683
3698
  /*
3684
3699
  * Copyright (c) Microsoft Corporation. All rights reserved.
3685
3700
  * Licensed under the MIT License.
@@ -3707,7 +3722,7 @@
3707
3722
  uxNotAllowed: uxNotAllowed
3708
3723
  });
3709
3724
 
3710
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3725
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3711
3726
 
3712
3727
  /*
3713
3728
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3773,7 +3788,7 @@
3773
3788
  return new InteractionRequiredAuthError(errorCode, errorMessage);
3774
3789
  }
3775
3790
 
3776
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3791
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3777
3792
 
3778
3793
  /*
3779
3794
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3841,7 +3856,7 @@
3841
3856
  }
3842
3857
  }
3843
3858
 
3844
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3859
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3845
3860
  /*
3846
3861
  * Copyright (c) Microsoft Corporation. All rights reserved.
3847
3862
  * Licensed under the MIT License.
@@ -3906,7 +3921,7 @@
3906
3921
  return cachedAtSec > nowSeconds();
3907
3922
  }
3908
3923
 
3909
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3924
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3910
3925
  /*
3911
3926
  * Copyright (c) Microsoft Corporation. All rights reserved.
3912
3927
  * Licensed under the MIT License.
@@ -3977,7 +3992,7 @@
3977
3992
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
3978
3993
  const SetUserData = "setUserData";
3979
3994
 
3980
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3995
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3981
3996
  /*
3982
3997
  * Copyright (c) Microsoft Corporation. All rights reserved.
3983
3998
  * Licensed under the MIT License.
@@ -4072,7 +4087,7 @@
4072
4087
  };
4073
4088
  };
4074
4089
 
4075
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4090
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4076
4091
 
4077
4092
  /*
4078
4093
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4152,7 +4167,7 @@
4152
4167
  }
4153
4168
  }
4154
4169
 
4155
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4170
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4156
4171
  /*
4157
4172
  * Copyright (c) Microsoft Corporation. All rights reserved.
4158
4173
  * Licensed under the MIT License.
@@ -4179,7 +4194,7 @@
4179
4194
  }
4180
4195
  }
4181
4196
 
4182
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4197
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4183
4198
 
4184
4199
  /*
4185
4200
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4438,7 +4453,7 @@
4438
4453
  return metadata.expiresAt <= nowSeconds();
4439
4454
  }
4440
4455
 
4441
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4456
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4442
4457
 
4443
4458
  /*
4444
4459
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4505,7 +4520,7 @@
4505
4520
  * @param serverTokenResponse
4506
4521
  * @param authority
4507
4522
  */
4508
- async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4523
+ async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4509
4524
  // create an idToken object (not entity)
4510
4525
  let idTokenClaims;
4511
4526
  if (serverTokenResponse.id_token) {
@@ -4552,14 +4567,19 @@
4552
4567
  if (handlingRefreshTokenResponse &&
4553
4568
  !forceCacheRefreshTokenResponse &&
4554
4569
  cacheRecord.account) {
4555
- const key = this.cacheStorage.generateAccountKey(getAccountInfo(cacheRecord.account));
4556
- const account = this.cacheStorage.getAccount(key, request.correlationId);
4557
- if (!account) {
4570
+ const cachedAccounts = this.cacheStorage.getAllAccounts({
4571
+ homeAccountId: cacheRecord.account.homeAccountId,
4572
+ environment: cacheRecord.account.environment,
4573
+ }, request.correlationId);
4574
+ if (cachedAccounts.length < 1) {
4558
4575
  this.logger.warning("1gmt66", request.correlationId);
4576
+ this.performanceClient?.addFields({
4577
+ acntLoggedOut: true,
4578
+ }, request.correlationId);
4559
4579
  return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
4560
4580
  }
4561
4581
  }
4562
- await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
4582
+ await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
4563
4583
  }
4564
4584
  finally {
4565
4585
  if (this.persistencePlugin &&
@@ -4769,7 +4789,7 @@
4769
4789
  return baseAccount;
4770
4790
  }
4771
4791
 
4772
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4792
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4773
4793
  /*
4774
4794
  * Copyright (c) Microsoft Corporation. All rights reserved.
4775
4795
  * Licensed under the MIT License.
@@ -4779,7 +4799,7 @@
4779
4799
  UPN: "UPN",
4780
4800
  };
4781
4801
 
4782
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4802
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4783
4803
  /*
4784
4804
  * Copyright (c) Microsoft Corporation. All rights reserved.
4785
4805
  * Licensed under the MIT License.
@@ -4797,7 +4817,7 @@
4797
4817
  }
4798
4818
  }
4799
4819
 
4800
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4820
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4801
4821
  /*
4802
4822
  * Copyright (c) Microsoft Corporation. All rights reserved.
4803
4823
  * Licensed under the MIT License.
@@ -4818,7 +4838,7 @@
4818
4838
  };
4819
4839
  }
4820
4840
 
4821
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4841
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4822
4842
 
4823
4843
  /*
4824
4844
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4904,7 +4924,7 @@
4904
4924
  }
4905
4925
  }
4906
4926
 
4907
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4927
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4908
4928
 
4909
4929
  /*
4910
4930
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4935,7 +4955,7 @@
4935
4955
  return new NetworkError(error, httpStatus, responseHeaders);
4936
4956
  }
4937
4957
 
4938
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4958
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4939
4959
 
4940
4960
  /*
4941
4961
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5049,7 +5069,7 @@
5049
5069
  return response;
5050
5070
  }
5051
5071
 
5052
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5072
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5053
5073
  /*
5054
5074
  * Copyright (c) Microsoft Corporation. All rights reserved.
5055
5075
  * Licensed under the MIT License.
@@ -5061,7 +5081,7 @@
5061
5081
  response.hasOwnProperty("jwks_uri"));
5062
5082
  }
5063
5083
 
5064
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5084
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5065
5085
  /*
5066
5086
  * Copyright (c) Microsoft Corporation. All rights reserved.
5067
5087
  * Licensed under the MIT License.
@@ -5071,7 +5091,7 @@
5071
5091
  response.hasOwnProperty("metadata"));
5072
5092
  }
5073
5093
 
5074
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5094
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5075
5095
  /*
5076
5096
  * Copyright (c) Microsoft Corporation. All rights reserved.
5077
5097
  * Licensed under the MIT License.
@@ -5081,7 +5101,7 @@
5081
5101
  response.hasOwnProperty("error_description"));
5082
5102
  }
5083
5103
 
5084
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5104
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5085
5105
 
5086
5106
  /*
5087
5107
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5186,7 +5206,7 @@
5186
5206
  },
5187
5207
  };
5188
5208
 
5189
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5209
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5190
5210
 
5191
5211
  /*
5192
5212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6006,7 +6026,7 @@
6006
6026
  };
6007
6027
  }
6008
6028
 
6009
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6029
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6010
6030
 
6011
6031
  /*
6012
6032
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6040,7 +6060,7 @@
6040
6060
  }
6041
6061
  }
6042
6062
 
6043
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6063
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6044
6064
 
6045
6065
  /*
6046
6066
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6078,7 +6098,7 @@
6078
6098
  * authorization_code_grant
6079
6099
  * @param request
6080
6100
  */
6081
- async acquireToken(request, authCodePayload) {
6101
+ async acquireToken(request, apiId, authCodePayload) {
6082
6102
  if (!request.code) {
6083
6103
  throw createClientAuthError(requestCannotBeMade);
6084
6104
  }
@@ -6093,7 +6113,7 @@
6093
6113
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
6094
6114
  // Validate response. This function throws a server error if an error is returned by the server.
6095
6115
  responseHandler.validateTokenResponse(response.body, request.correlationId);
6096
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
6116
+ 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);
6097
6117
  }
6098
6118
  /**
6099
6119
  * Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
@@ -6300,7 +6320,7 @@
6300
6320
  }
6301
6321
  }
6302
6322
 
6303
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6323
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6304
6324
 
6305
6325
  /*
6306
6326
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6330,20 +6350,20 @@
6330
6350
  // set performance telemetry client
6331
6351
  this.performanceClient = performanceClient;
6332
6352
  }
6333
- async acquireToken(request) {
6353
+ async acquireToken(request, apiId) {
6334
6354
  const reqTimestamp = nowSeconds();
6335
6355
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
6336
6356
  // Retrieve requestId from response headers
6337
6357
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
6338
6358
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
6339
6359
  responseHandler.validateTokenResponse(response.body, request.correlationId);
6340
- 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);
6360
+ 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);
6341
6361
  }
6342
6362
  /**
6343
6363
  * Gets cached refresh token and attaches to request, then calls acquireToken API
6344
6364
  * @param request
6345
6365
  */
6346
- async acquireTokenByRefreshToken(request) {
6366
+ async acquireTokenByRefreshToken(request, apiId) {
6347
6367
  // Cannot renew token if no request object is given.
6348
6368
  if (!request) {
6349
6369
  throw createClientConfigurationError(tokenRequestEmpty);
@@ -6357,7 +6377,7 @@
6357
6377
  // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
6358
6378
  if (isFOCI) {
6359
6379
  try {
6360
- return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
6380
+ return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
6361
6381
  }
6362
6382
  catch (e) {
6363
6383
  const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
@@ -6368,7 +6388,7 @@
6368
6388
  e.subError === CLIENT_MISMATCH_ERROR;
6369
6389
  // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
6370
6390
  if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
6371
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6391
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6372
6392
  // throw in all other cases
6373
6393
  }
6374
6394
  else {
@@ -6377,13 +6397,13 @@
6377
6397
  }
6378
6398
  }
6379
6399
  // fall back to application refresh token acquisition
6380
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6400
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6381
6401
  }
6382
6402
  /**
6383
6403
  * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
6384
6404
  * @param request
6385
6405
  */
6386
- async acquireTokenWithCachedRefreshToken(request, foci) {
6406
+ async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
6387
6407
  // fetches family RT or application RT based on FOCI value
6388
6408
  const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
6389
6409
  if (!refreshToken) {
@@ -6412,7 +6432,7 @@
6412
6432
  },
6413
6433
  };
6414
6434
  try {
6415
- return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
6435
+ return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
6416
6436
  }
6417
6437
  catch (e) {
6418
6438
  if (e instanceof InteractionRequiredAuthError) {
@@ -6525,7 +6545,7 @@
6525
6545
  }
6526
6546
  }
6527
6547
 
6528
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6548
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6529
6549
 
6530
6550
  /*
6531
6551
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6634,7 +6654,7 @@
6634
6654
  }
6635
6655
  }
6636
6656
 
6637
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6657
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6638
6658
 
6639
6659
  /*
6640
6660
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6649,7 +6669,7 @@
6649
6669
  },
6650
6670
  };
6651
6671
 
6652
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6672
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6653
6673
 
6654
6674
  /*
6655
6675
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6873,7 +6893,7 @@
6873
6893
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6874
6894
  }
6875
6895
 
6876
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6896
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6877
6897
 
6878
6898
  /*
6879
6899
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6931,7 +6951,7 @@
6931
6951
  }
6932
6952
  }
6933
6953
 
6934
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6954
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6935
6955
  /*
6936
6956
  * Copyright (c) Microsoft Corporation. All rights reserved.
6937
6957
  * Licensed under the MIT License.
@@ -6948,7 +6968,7 @@
6948
6968
  unexpectedError: unexpectedError
6949
6969
  });
6950
6970
 
6951
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6971
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6952
6972
 
6953
6973
  /*
6954
6974
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7209,7 +7229,7 @@
7209
7229
  }
7210
7230
  }
7211
7231
 
7212
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7232
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7213
7233
 
7214
7234
  /*
7215
7235
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7230,7 +7250,7 @@
7230
7250
  return new JoseHeaderError(code);
7231
7251
  }
7232
7252
 
7233
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7253
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7234
7254
  /*
7235
7255
  * Copyright (c) Microsoft Corporation. All rights reserved.
7236
7256
  * Licensed under the MIT License.
@@ -7238,7 +7258,7 @@
7238
7258
  const missingKidError = "missing_kid_error";
7239
7259
  const missingAlgError = "missing_alg_error";
7240
7260
 
7241
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7261
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7242
7262
 
7243
7263
  /*
7244
7264
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7278,7 +7298,7 @@
7278
7298
  }
7279
7299
  }
7280
7300
 
7281
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7301
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7282
7302
 
7283
7303
  /*
7284
7304
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7977,6 +7997,7 @@
7977
7997
  * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
7978
7998
  * 0-99 Silent Flow
7979
7999
  * 800-899 Auth Code Flow
8000
+ * 900-999 Misc
7980
8001
  */
7981
8002
  const ApiId = {
7982
8003
  acquireTokenRedirect: 861,
@@ -7988,6 +8009,30 @@
7988
8009
  acquireTokenSilent_silentFlow: 61,
7989
8010
  logout: 961,
7990
8011
  logoutPopup: 962,
8012
+ hydrateCache: 963,
8013
+ loadExternalTokens: 964,
8014
+ };
8015
+ /**
8016
+ * API Names for Telemetry purposes.
8017
+ */
8018
+ const ApiName = {
8019
+ 861: "acquireTokenRedirect",
8020
+ 862: "acquireTokenPopup",
8021
+ 863: "ssoSilent",
8022
+ 864: "acquireTokenSilent_authCode",
8023
+ 865: "handleRedirectPromise",
8024
+ 866: "acquireTokenByCode",
8025
+ 61: "acquireTokenSilent_silentFlow",
8026
+ 961: "logout",
8027
+ 962: "logoutPopup",
8028
+ 963: "hydrateCache",
8029
+ 964: "loadExternalTokens",
8030
+ };
8031
+ const apiIdToName = (id) => {
8032
+ if (typeof id === "number" && id in ApiName) {
8033
+ return ApiName[id];
8034
+ }
8035
+ return "unknown";
7991
8036
  };
7992
8037
  /*
7993
8038
  * Interaction type of the API - used for state and telemetry
@@ -10079,7 +10124,7 @@
10079
10124
 
10080
10125
  /* eslint-disable header/header */
10081
10126
  const name = "@azure/msal-browser";
10082
- const version = "5.0.1";
10127
+ const version = "5.1.0";
10083
10128
 
10084
10129
  /*
10085
10130
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10651,17 +10696,22 @@
10651
10696
  !isAccountEntity(parsedAccount)) {
10652
10697
  return null;
10653
10698
  }
10654
- return CacheManager.toObject({}, parsedAccount);
10699
+ const account = CacheManager.toObject({}, parsedAccount);
10700
+ this.performanceClient.addFields({
10701
+ accountCachedBy: apiIdToName(account.cachedByApiId),
10702
+ }, correlationId);
10703
+ return account;
10655
10704
  }
10656
10705
  /**
10657
10706
  * set account entity in the platform cache
10658
10707
  * @param account
10659
10708
  */
10660
- async setAccount(account, correlationId, kmsi) {
10709
+ async setAccount(account, correlationId, kmsi, apiId) {
10661
10710
  this.logger.trace("1bz3wr", correlationId);
10662
10711
  const key = this.generateAccountKey(getAccountInfo(account));
10663
10712
  const timestamp = Date.now().toString();
10664
10713
  account.lastUpdatedAt = timestamp;
10714
+ account.cachedByApiId = apiId;
10665
10715
  await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
10666
10716
  this.addAccountKeyToMap(key, correlationId);
10667
10717
  this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
@@ -11372,7 +11422,7 @@
11372
11422
  * @param request
11373
11423
  */
11374
11424
  async hydrateCache(result, request) {
11375
- const idTokenEntity = createIdTokenEntity(result.account?.homeAccountId, result.account?.environment, result.idToken, this.clientId, result.tenantId);
11425
+ const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
11376
11426
  /**
11377
11427
  * meta data for cache stores time in seconds from epoch
11378
11428
  * AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
@@ -11380,7 +11430,7 @@
11380
11430
  *
11381
11431
  * The next MSAL VFuture should map these both to same value if possible
11382
11432
  */
11383
- const accessTokenEntity = createAccessTokenEntity(result.account?.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
11433
+ const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
11384
11434
  // Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
11385
11435
  result.expiresOn
11386
11436
  ? toSecondsFromDate(result.expiresOn)
@@ -11393,7 +11443,7 @@
11393
11443
  idToken: idTokenEntity,
11394
11444
  accessToken: accessTokenEntity,
11395
11445
  };
11396
- return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
11446
+ return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
11397
11447
  }
11398
11448
  /**
11399
11449
  * saves a cache record
@@ -11401,9 +11451,9 @@
11401
11451
  * @param storeInCache {?StoreInCache}
11402
11452
  * @param correlationId {?string} correlation id
11403
11453
  */
11404
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
11454
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
11405
11455
  try {
11406
- await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
11456
+ await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
11407
11457
  }
11408
11458
  catch (e) {
11409
11459
  if (e instanceof CacheError &&
@@ -12087,7 +12137,7 @@
12087
12137
  * Function to handle response parameters from hash.
12088
12138
  * @param locationHash
12089
12139
  */
12090
- async handleCodeResponse(response, request) {
12140
+ async handleCodeResponse(response, request, apiId) {
12091
12141
  let authCodeResponse;
12092
12142
  try {
12093
12143
  authCodeResponse = getAuthorizationCodePayload(response, request.state);
@@ -12102,7 +12152,7 @@
12102
12152
  throw e;
12103
12153
  }
12104
12154
  }
12105
- return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
12155
+ return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
12106
12156
  }
12107
12157
  /**
12108
12158
  * Process auth code response from AAD
@@ -12111,7 +12161,7 @@
12111
12161
  * @param validateNonce
12112
12162
  * @returns
12113
12163
  */
12114
- async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
12164
+ async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
12115
12165
  this.logger.trace("0mf2hb", request.correlationId);
12116
12166
  // Assign code to request
12117
12167
  this.authCodeRequest.code = authCodeResponse.code;
@@ -12132,7 +12182,7 @@
12132
12182
  }
12133
12183
  }
12134
12184
  // Acquire token with retrieved code.
12135
- const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, authCodeResponse));
12185
+ const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
12136
12186
  return tokenResponse;
12137
12187
  }
12138
12188
  /**
@@ -12666,7 +12716,7 @@
12666
12716
  */
12667
12717
  async cacheAccount(accountEntity, kmsi) {
12668
12718
  // Store the account info and hence `nativeAccountId` in browser cache
12669
- await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
12719
+ await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
12670
12720
  // Remove any existing cached tokens for this account in browser storage
12671
12721
  this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
12672
12722
  }
@@ -12695,7 +12745,7 @@
12695
12745
  idToken: cachedIdToken,
12696
12746
  accessToken: cachedAccessToken,
12697
12747
  };
12698
- return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
12748
+ return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
12699
12749
  }
12700
12750
  getExpiresInValue(tokenType, expiresIn) {
12701
12751
  return tokenType === AuthenticationScheme$1.POP
@@ -13074,7 +13124,7 @@
13074
13124
  // Create popup interaction handler.
13075
13125
  const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
13076
13126
  // Handle response from hash string.
13077
- const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
13127
+ const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
13078
13128
  return result;
13079
13129
  }
13080
13130
  /**
@@ -13121,7 +13171,7 @@
13121
13171
  cloud_instance_name: decryptedData.cloud_instance_name,
13122
13172
  msgraph_host: decryptedData.msgraph_host,
13123
13173
  };
13124
- return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
13174
+ return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
13125
13175
  }
13126
13176
 
13127
13177
  /*
@@ -15029,7 +15079,7 @@
15029
15079
  account: silentRequest.account,
15030
15080
  });
15031
15081
  // Send request to renew token. Auth module will throw errors if token cannot be renewed.
15032
- return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest).catch((e) => {
15082
+ return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
15033
15083
  e.setCorrelationId(this.correlationId);
15034
15084
  serverTelemetryManager.cacheFailedRequest(e);
15035
15085
  throw e;
@@ -15126,7 +15176,7 @@
15126
15176
  msgraph_host: request.msGraphHost,
15127
15177
  cloud_graph_host_name: request.cloudGraphHostName,
15128
15178
  cloud_instance_host_name: request.cloudInstanceHostName,
15129
- }, silentRequest, false);
15179
+ }, silentRequest, this.apiId, false);
15130
15180
  }
15131
15181
  catch (e) {
15132
15182
  if (e instanceof AuthError) {
@@ -15939,7 +15989,7 @@
15939
15989
  this.logger.verbose("16jycr", result.correlationId);
15940
15990
  // Account gets saved to browser storage regardless of native or not
15941
15991
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
15942
- await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
15992
+ await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
15943
15993
  if (result.fromPlatformBroker) {
15944
15994
  this.logger.verbose("1fxyu8", result.correlationId);
15945
15995
  // Tokens from native broker are stored in-memory
@@ -17270,7 +17320,7 @@
17270
17320
  async hydrateCache(result, request) {
17271
17321
  this.logger.verbose("16jycr", result.correlationId);
17272
17322
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
17273
- await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
17323
+ await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
17274
17324
  return this.browserStorage.hydrateCache(result, request);
17275
17325
  }
17276
17326
  }
@@ -17917,20 +17967,19 @@
17917
17967
  const logger = new Logger(browserConfig.system.loggerOptions || {});
17918
17968
  const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
17919
17969
  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);
17970
+ const authorityString = request.authority || browserConfig.auth.authority;
17971
+ const authority = await createDiscoveredInstance(Authority.generateAuthority(authorityString, request.azureCloudOptions), browserConfig.system.networkClient, storage, authorityOptions, logger, correlationId, performanceClient);
17972
+ const cacheRecordAccount = await invokeAsync(loadAccount, LoadAccount, logger, performanceClient, correlationId)(request, options.clientInfo || response.client_info || "", correlationId, storage, logger, cryptoOps, authority, idTokenClaims);
17924
17973
  const idToken = await invokeAsync(loadIdToken, LoadIdToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, cacheRecordAccount.realm, kmsi, correlationId, storage, logger, config.auth.clientId);
17925
17974
  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);
17975
+ const refreshToken = await invokeAsync(loadRefreshToken, LoadRefreshToken, logger, performanceClient, correlationId)(response, cacheRecordAccount.homeAccountId, cacheRecordAccount.environment, kmsi, correlationId, storage, logger, config.auth.clientId, performanceClient);
17927
17976
  rootMeasurement.end({ success: true }, undefined, getAccountInfo(cacheRecordAccount));
17928
17977
  return generateAuthenticationResult(request, {
17929
17978
  account: cacheRecordAccount,
17930
17979
  idToken,
17931
17980
  accessToken,
17932
17981
  refreshToken,
17933
- }, idTokenClaims, authority);
17982
+ }, authority, idTokenClaims);
17934
17983
  }
17935
17984
  catch (error) {
17936
17985
  rootMeasurement.end({ success: false }, error);
@@ -17946,23 +17995,23 @@
17946
17995
  * @param requestHomeAccountId
17947
17996
  * @returns `AccountEntity`
17948
17997
  */
17949
- async function loadAccount(request, clientInfo, correlationId, storage, logger, cryptoObj, idTokenClaims, authority) {
17998
+ async function loadAccount(request, clientInfo, correlationId, storage, logger, cryptoObj, authority, idTokenClaims) {
17950
17999
  logger.verbose("0ke46k", correlationId);
17951
18000
  if (request.account) {
17952
18001
  const accountEntity = createAccountEntityFromAccountInfo(request.account);
17953
- await storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}));
18002
+ await storage.setAccount(accountEntity, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
17954
18003
  return accountEntity;
17955
18004
  }
17956
- else if (!authority || (!clientInfo && !idTokenClaims)) {
17957
- logger.error("1ychpz", correlationId);
18005
+ else if (!clientInfo && !idTokenClaims) {
18006
+ logger.error("0hzcn4", correlationId);
17958
18007
  throw createBrowserAuthError(unableToLoadToken);
17959
18008
  }
17960
18009
  const homeAccountId = generateHomeAccountId(clientInfo, authority.authorityType, logger, cryptoObj, correlationId, idTokenClaims);
17961
18010
  const claimsTenantId = idTokenClaims?.tid;
17962
- const cachedAccount = buildAccountToCache(storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.hostnameAndPort, claimsTenantId, undefined, // authCodePayload
18011
+ const cachedAccount = buildAccountToCache(storage, authority, homeAccountId, base64Decode, correlationId, idTokenClaims, clientInfo, authority.getPreferredCache(), claimsTenantId, undefined, // authCodePayload
17963
18012
  undefined, // nativeAccountId
17964
18013
  logger);
17965
- await storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}));
18014
+ await storage.setAccount(cachedAccount, correlationId, isKmsi(idTokenClaims || {}), ApiId.loadExternalTokens);
17966
18015
  return cachedAccount;
17967
18016
  }
17968
18017
  /**
@@ -18025,14 +18074,20 @@
18025
18074
  * @param environment
18026
18075
  * @returns `RefreshTokenEntity`
18027
18076
  */
18028
- async function loadRefreshToken(response, homeAccountId, environment, kmsi, correlationId, storage, logger, clientId) {
18077
+ async function loadRefreshToken(response, homeAccountId, environment, kmsi, correlationId, storage, logger, clientId, performanceClient) {
18029
18078
  if (!response.refresh_token) {
18030
18079
  logger.verbose("1l7um5", correlationId);
18031
18080
  return null;
18032
18081
  }
18082
+ const expiresOn = response.refresh_token_expires_in
18083
+ ? response.refresh_token_expires_in + nowSeconds()
18084
+ : undefined;
18085
+ performanceClient.addFields({
18086
+ extRtExpiresOnSeconds: expiresOn,
18087
+ }, correlationId);
18033
18088
  logger.verbose("0qy8ev", correlationId);
18034
18089
  const refreshTokenEntity = createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, clientId, response.foci, undefined, // userAssertionHash
18035
- response.refresh_token_expires_in);
18090
+ expiresOn);
18036
18091
  await storage.setRefreshTokenCredential(refreshTokenEntity, correlationId, kmsi);
18037
18092
  return refreshTokenEntity;
18038
18093
  }
@@ -18044,7 +18099,7 @@
18044
18099
  * @param authority
18045
18100
  * @returns `AuthenticationResult`
18046
18101
  */
18047
- function generateAuthenticationResult(request, cacheRecord, idTokenClaims, authority) {
18102
+ function generateAuthenticationResult(request, cacheRecord, authority, idTokenClaims) {
18048
18103
  let accessToken = "";
18049
18104
  let responseScopes = [];
18050
18105
  let expiresOn = null;
@@ -18058,7 +18113,7 @@
18058
18113
  }
18059
18114
  const accountEntity = cacheRecord.account;
18060
18115
  return {
18061
- authority: authority ? authority.canonicalAuthority : "",
18116
+ authority: authority.canonicalAuthority,
18062
18117
  uniqueId: cacheRecord.account.localAccountId,
18063
18118
  tenantId: cacheRecord.account.realm,
18064
18119
  scopes: responseScopes,