@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,8 +1,8 @@
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
  'use strict';
4
4
 
5
- /*! @azure/msal-common v16.0.1 2026-01-16 */
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.
@@ -229,7 +229,7 @@ const JsonWebTokenTypes = {
229
229
  // Token renewal offset default in seconds
230
230
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
231
231
 
232
- /*! @azure/msal-common v16.0.1 2026-01-16 */
232
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
233
233
  /*
234
234
  * Copyright (c) Microsoft Corporation. All rights reserved.
235
235
  * Licensed under the MIT License.
@@ -279,7 +279,7 @@ const INSTANCE_AWARE = "instance_aware";
279
279
  const EAR_JWK = "ear_jwk";
280
280
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
281
281
 
282
- /*! @azure/msal-common v16.0.1 2026-01-16 */
282
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
283
283
  /*
284
284
  * Copyright (c) Microsoft Corporation. All rights reserved.
285
285
  * Licensed under the MIT License.
@@ -310,7 +310,7 @@ function createAuthError(code, additionalMessage) {
310
310
  return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
311
311
  }
312
312
 
313
- /*! @azure/msal-common v16.0.1 2026-01-16 */
313
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
314
314
 
315
315
  /*
316
316
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -330,7 +330,7 @@ function createClientConfigurationError(errorCode) {
330
330
  return new ClientConfigurationError(errorCode);
331
331
  }
332
332
 
333
- /*! @azure/msal-common v16.0.1 2026-01-16 */
333
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
334
334
  /*
335
335
  * Copyright (c) Microsoft Corporation. All rights reserved.
336
336
  * Licensed under the MIT License.
@@ -427,7 +427,7 @@ class StringUtils {
427
427
  }
428
428
  }
429
429
 
430
- /*! @azure/msal-common v16.0.1 2026-01-16 */
430
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
431
431
 
432
432
  /*
433
433
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -450,7 +450,7 @@ function createClientAuthError(errorCode, additionalMessage) {
450
450
  return new ClientAuthError(errorCode, additionalMessage);
451
451
  }
452
452
 
453
- /*! @azure/msal-common v16.0.1 2026-01-16 */
453
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
454
454
  /*
455
455
  * Copyright (c) Microsoft Corporation. All rights reserved.
456
456
  * Licensed under the MIT License.
@@ -474,7 +474,7 @@ const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
474
474
  const authorityMismatch = "authority_mismatch";
475
475
  const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
476
476
 
477
- /*! @azure/msal-common v16.0.1 2026-01-16 */
477
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
478
478
  /*
479
479
  * Copyright (c) Microsoft Corporation. All rights reserved.
480
480
  * Licensed under the MIT License.
@@ -511,7 +511,7 @@ const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
511
511
  const keyIdMissing = "key_id_missing";
512
512
  const methodNotImplemented = "method_not_implemented";
513
513
 
514
- /*! @azure/msal-common v16.0.1 2026-01-16 */
514
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
515
515
 
516
516
  /*
517
517
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -706,7 +706,7 @@ class ScopeSet {
706
706
  }
707
707
  }
708
708
 
709
- /*! @azure/msal-common v16.0.1 2026-01-16 */
709
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
710
710
 
711
711
  /*
712
712
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1073,7 +1073,7 @@ function addEARParameters(parameters, jwk) {
1073
1073
  parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
1074
1074
  }
1075
1075
 
1076
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1076
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1077
1077
 
1078
1078
  /*
1079
1079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1182,7 +1182,7 @@ function normalizeUrlForComparison(url) {
1182
1182
  }
1183
1183
  }
1184
1184
 
1185
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1185
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1186
1186
 
1187
1187
  /*
1188
1188
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1221,7 +1221,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
1221
1221
  },
1222
1222
  };
1223
1223
 
1224
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1224
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1225
1225
  /*
1226
1226
  * Copyright (c) Microsoft Corporation. All rights reserved.
1227
1227
  * Licensed under the MIT License.
@@ -1482,12 +1482,12 @@ class Logger {
1482
1482
  }
1483
1483
  }
1484
1484
 
1485
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1485
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1486
1486
  /* eslint-disable header/header */
1487
1487
  const name$1 = "@azure/msal-common";
1488
- const version$1 = "16.0.1";
1488
+ const version$1 = "16.0.3";
1489
1489
 
1490
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1490
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1491
1491
  /*
1492
1492
  * Copyright (c) Microsoft Corporation. All rights reserved.
1493
1493
  * Licensed under the MIT License.
@@ -1496,7 +1496,7 @@ const AzureCloudInstance = {
1496
1496
  // AzureCloudInstance is not specified.
1497
1497
  None: "none"};
1498
1498
 
1499
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1499
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1500
1500
  /*
1501
1501
  * Copyright (c) Microsoft Corporation. All rights reserved.
1502
1502
  * Licensed under the MIT License.
@@ -1578,7 +1578,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1578
1578
  return updatedAccountInfo;
1579
1579
  }
1580
1580
 
1581
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1581
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1582
1582
 
1583
1583
  /*
1584
1584
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1658,7 +1658,7 @@ function checkMaxAge(authTime, maxAge) {
1658
1658
  }
1659
1659
  }
1660
1660
 
1661
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1661
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1662
1662
 
1663
1663
  /*
1664
1664
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1815,7 +1815,7 @@ class UrlString {
1815
1815
  }
1816
1816
  }
1817
1817
 
1818
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1818
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1819
1819
 
1820
1820
  /*
1821
1821
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1957,7 +1957,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1957
1957
  return null;
1958
1958
  }
1959
1959
 
1960
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1960
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1961
1961
  /*
1962
1962
  * Copyright (c) Microsoft Corporation. All rights reserved.
1963
1963
  * Licensed under the MIT License.
@@ -1965,7 +1965,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1965
1965
  const cacheQuotaExceeded = "cache_quota_exceeded";
1966
1966
  const cacheErrorUnknown = "cache_error_unknown";
1967
1967
 
1968
- /*! @azure/msal-common v16.0.1 2026-01-16 */
1968
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
1969
1969
 
1970
1970
  /*
1971
1971
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2003,7 +2003,7 @@ function createCacheError(e) {
2003
2003
  }
2004
2004
  }
2005
2005
 
2006
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2006
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2007
2007
 
2008
2008
  /*
2009
2009
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2041,7 +2041,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2041
2041
  };
2042
2042
  }
2043
2043
 
2044
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2044
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2045
2045
  /*
2046
2046
  * Copyright (c) Microsoft Corporation. All rights reserved.
2047
2047
  * Licensed under the MIT License.
@@ -2056,7 +2056,7 @@ const AuthorityType = {
2056
2056
  Ciam: 3,
2057
2057
  };
2058
2058
 
2059
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2059
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2060
2060
  /*
2061
2061
  * Copyright (c) Microsoft Corporation. All rights reserved.
2062
2062
  * Licensed under the MIT License.
@@ -2078,7 +2078,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2078
2078
  return null;
2079
2079
  }
2080
2080
 
2081
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2081
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2082
2082
  /*
2083
2083
  * Copyright (c) Microsoft Corporation. All rights reserved.
2084
2084
  * Licensed under the MIT License.
@@ -2102,11 +2102,18 @@ const ProtocolMode = {
2102
2102
  EAR: "EAR",
2103
2103
  };
2104
2104
 
2105
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2105
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2106
2106
  /**
2107
2107
  * Returns the AccountInfo interface for this account.
2108
2108
  */
2109
2109
  function getAccountInfo(accountEntity) {
2110
+ const tenantProfiles = accountEntity.tenantProfiles || [];
2111
+ // Ensure at least the home tenant profile exists
2112
+ if (tenantProfiles.length === 0 &&
2113
+ accountEntity.realm &&
2114
+ accountEntity.localAccountId) {
2115
+ tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
2116
+ }
2110
2117
  return {
2111
2118
  homeAccountId: accountEntity.homeAccountId,
2112
2119
  environment: accountEntity.environment,
@@ -2118,7 +2125,7 @@ function getAccountInfo(accountEntity) {
2118
2125
  nativeAccountId: accountEntity.nativeAccountId,
2119
2126
  authorityType: accountEntity.authorityType,
2120
2127
  // Deserialize tenant profiles array into a Map
2121
- tenantProfiles: new Map((accountEntity.tenantProfiles || []).map((tenantProfile) => {
2128
+ tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
2122
2129
  return [tenantProfile.tenantId, tenantProfile];
2123
2130
  })),
2124
2131
  dataBoundary: accountEntity.dataBoundary,
@@ -2207,6 +2214,14 @@ function createAccountEntity(accountDetails, authority, base64Decode) {
2207
2214
  * @returns
2208
2215
  */
2209
2216
  function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
2217
+ // Serialize tenant profiles map into an array
2218
+ const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
2219
+ // Ensure at least the home tenant profile exists
2220
+ if (tenantProfiles.length === 0 &&
2221
+ accountInfo.tenantId &&
2222
+ accountInfo.localAccountId) {
2223
+ tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
2224
+ }
2210
2225
  return {
2211
2226
  authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
2212
2227
  homeAccountId: accountInfo.homeAccountId,
@@ -2219,7 +2234,7 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
2219
2234
  name: accountInfo.name,
2220
2235
  cloudGraphHostName: cloudGraphHostName,
2221
2236
  msGraphHost: msGraphHost,
2222
- tenantProfiles: Array.from(accountInfo.tenantProfiles?.values() || []),
2237
+ tenantProfiles: tenantProfiles,
2223
2238
  dataBoundary: accountInfo.dataBoundary,
2224
2239
  };
2225
2240
  }
@@ -2262,7 +2277,7 @@ function isAccountEntity(entity) {
2262
2277
  entity.hasOwnProperty("authorityType"));
2263
2278
  }
2264
2279
 
2265
- /*! @azure/msal-common v16.0.1 2026-01-16 */
2280
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
2266
2281
 
2267
2282
  /*
2268
2283
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2428,13 +2443,13 @@ class CacheManager {
2428
2443
  * @param storeInCache {?StoreInCache}
2429
2444
  * @param correlationId {?string} correlation id
2430
2445
  */
2431
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
2446
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
2432
2447
  if (!cacheRecord) {
2433
2448
  throw createClientAuthError(invalidCacheRecord);
2434
2449
  }
2435
2450
  try {
2436
2451
  if (!!cacheRecord.account) {
2437
- await this.setAccount(cacheRecord.account, correlationId, kmsi);
2452
+ await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
2438
2453
  }
2439
2454
  if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
2440
2455
  await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
@@ -3358,7 +3373,7 @@ class DefaultStorageClass extends CacheManager {
3358
3373
  }
3359
3374
  }
3360
3375
 
3361
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3376
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3362
3377
  /*
3363
3378
  * Copyright (c) Microsoft Corporation. All rights reserved.
3364
3379
  * Licensed under the MIT License.
@@ -3372,7 +3387,7 @@ class DefaultStorageClass extends CacheManager {
3372
3387
  const PerformanceEventStatus = {
3373
3388
  InProgress: 1};
3374
3389
 
3375
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3390
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3376
3391
 
3377
3392
  /*
3378
3393
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3427,7 +3442,7 @@ class StubPerformanceClient {
3427
3442
  }
3428
3443
  }
3429
3444
 
3430
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3445
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3431
3446
 
3432
3447
  /*
3433
3448
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3521,7 +3536,7 @@ function isOidcProtocolMode(config) {
3521
3536
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3522
3537
  }
3523
3538
 
3524
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3539
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3525
3540
 
3526
3541
  /*
3527
3542
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3540,7 +3555,7 @@ class ServerError extends AuthError {
3540
3555
  }
3541
3556
  }
3542
3557
 
3543
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3558
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3544
3559
  /*
3545
3560
  * Copyright (c) Microsoft Corporation. All rights reserved.
3546
3561
  * Licensed under the MIT License.
@@ -3556,7 +3571,7 @@ const consentRequired = "consent_required";
3556
3571
  const loginRequired = "login_required";
3557
3572
  const badToken = "bad_token";
3558
3573
 
3559
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3574
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3560
3575
 
3561
3576
  /*
3562
3577
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3622,7 +3637,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
3622
3637
  return new InteractionRequiredAuthError(errorCode, errorMessage);
3623
3638
  }
3624
3639
 
3625
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3640
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3626
3641
 
3627
3642
  /*
3628
3643
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3690,7 +3705,7 @@ function parseRequestState(base64Decode, state) {
3690
3705
  }
3691
3706
  }
3692
3707
 
3693
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3708
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3694
3709
  /*
3695
3710
  * Copyright (c) Microsoft Corporation. All rights reserved.
3696
3711
  * Licensed under the MIT License.
@@ -3755,7 +3770,7 @@ function wasClockTurnedBack(cachedAt) {
3755
3770
  return cachedAtSec > nowSeconds();
3756
3771
  }
3757
3772
 
3758
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3773
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3759
3774
  /*
3760
3775
  * Copyright (c) Microsoft Corporation. All rights reserved.
3761
3776
  * Licensed under the MIT License.
@@ -3826,7 +3841,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
3826
3841
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
3827
3842
  const SetUserData = "setUserData";
3828
3843
 
3829
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3844
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3830
3845
  /*
3831
3846
  * Copyright (c) Microsoft Corporation. All rights reserved.
3832
3847
  * Licensed under the MIT License.
@@ -3921,7 +3936,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
3921
3936
  };
3922
3937
  };
3923
3938
 
3924
- /*! @azure/msal-common v16.0.1 2026-01-16 */
3939
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
3925
3940
 
3926
3941
  /*
3927
3942
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4001,7 +4016,7 @@ class PopTokenGenerator {
4001
4016
  }
4002
4017
  }
4003
4018
 
4004
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4019
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4005
4020
  /*
4006
4021
  * Copyright (c) Microsoft Corporation. All rights reserved.
4007
4022
  * Licensed under the MIT License.
@@ -4028,7 +4043,7 @@ class PopTokenGenerator {
4028
4043
  }
4029
4044
  }
4030
4045
 
4031
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4046
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4032
4047
 
4033
4048
  /*
4034
4049
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4287,7 +4302,7 @@ function isAuthorityMetadataExpired(metadata) {
4287
4302
  return metadata.expiresAt <= nowSeconds();
4288
4303
  }
4289
4304
 
4290
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4305
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4291
4306
 
4292
4307
  /*
4293
4308
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4354,7 +4369,7 @@ class ResponseHandler {
4354
4369
  * @param serverTokenResponse
4355
4370
  * @param authority
4356
4371
  */
4357
- async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4372
+ async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
4358
4373
  // create an idToken object (not entity)
4359
4374
  let idTokenClaims;
4360
4375
  if (serverTokenResponse.id_token) {
@@ -4401,14 +4416,19 @@ class ResponseHandler {
4401
4416
  if (handlingRefreshTokenResponse &&
4402
4417
  !forceCacheRefreshTokenResponse &&
4403
4418
  cacheRecord.account) {
4404
- const key = this.cacheStorage.generateAccountKey(getAccountInfo(cacheRecord.account));
4405
- const account = this.cacheStorage.getAccount(key, request.correlationId);
4406
- if (!account) {
4419
+ const cachedAccounts = this.cacheStorage.getAllAccounts({
4420
+ homeAccountId: cacheRecord.account.homeAccountId,
4421
+ environment: cacheRecord.account.environment,
4422
+ }, request.correlationId);
4423
+ if (cachedAccounts.length < 1) {
4407
4424
  this.logger.warning("1gmt66", request.correlationId);
4425
+ this.performanceClient?.addFields({
4426
+ acntLoggedOut: true,
4427
+ }, request.correlationId);
4408
4428
  return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
4409
4429
  }
4410
4430
  }
4411
- await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
4431
+ await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
4412
4432
  }
4413
4433
  finally {
4414
4434
  if (this.persistencePlugin &&
@@ -4618,7 +4638,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
4618
4638
  return baseAccount;
4619
4639
  }
4620
4640
 
4621
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4641
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4622
4642
  /*
4623
4643
  * Copyright (c) Microsoft Corporation. All rights reserved.
4624
4644
  * Licensed under the MIT License.
@@ -4628,7 +4648,7 @@ const CcsCredentialType = {
4628
4648
  UPN: "UPN",
4629
4649
  };
4630
4650
 
4631
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4651
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4632
4652
  /*
4633
4653
  * Copyright (c) Microsoft Corporation. All rights reserved.
4634
4654
  * Licensed under the MIT License.
@@ -4646,7 +4666,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
4646
4666
  }
4647
4667
  }
4648
4668
 
4649
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4669
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4650
4670
  /*
4651
4671
  * Copyright (c) Microsoft Corporation. All rights reserved.
4652
4672
  * Licensed under the MIT License.
@@ -4667,7 +4687,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
4667
4687
  };
4668
4688
  }
4669
4689
 
4670
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4690
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4671
4691
 
4672
4692
  /*
4673
4693
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4753,7 +4773,7 @@ class ThrottlingUtils {
4753
4773
  }
4754
4774
  }
4755
4775
 
4756
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4776
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4757
4777
 
4758
4778
  /*
4759
4779
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4784,7 +4804,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
4784
4804
  return new NetworkError(error, httpStatus, responseHeaders);
4785
4805
  }
4786
4806
 
4787
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4807
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4788
4808
 
4789
4809
  /*
4790
4810
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4898,7 +4918,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
4898
4918
  return response;
4899
4919
  }
4900
4920
 
4901
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4921
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4902
4922
  /*
4903
4923
  * Copyright (c) Microsoft Corporation. All rights reserved.
4904
4924
  * Licensed under the MIT License.
@@ -4910,7 +4930,7 @@ function isOpenIdConfigResponse(response) {
4910
4930
  response.hasOwnProperty("jwks_uri"));
4911
4931
  }
4912
4932
 
4913
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4933
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4914
4934
  /*
4915
4935
  * Copyright (c) Microsoft Corporation. All rights reserved.
4916
4936
  * Licensed under the MIT License.
@@ -4920,7 +4940,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4920
4940
  response.hasOwnProperty("metadata"));
4921
4941
  }
4922
4942
 
4923
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4943
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4924
4944
  /*
4925
4945
  * Copyright (c) Microsoft Corporation. All rights reserved.
4926
4946
  * Licensed under the MIT License.
@@ -4930,7 +4950,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4930
4950
  response.hasOwnProperty("error_description"));
4931
4951
  }
4932
4952
 
4933
- /*! @azure/msal-common v16.0.1 2026-01-16 */
4953
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
4934
4954
 
4935
4955
  /*
4936
4956
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5035,7 +5055,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5035
5055
  },
5036
5056
  };
5037
5057
 
5038
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5058
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5039
5059
 
5040
5060
  /*
5041
5061
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5855,7 +5875,7 @@ function buildStaticAuthorityOptions(authOptions) {
5855
5875
  };
5856
5876
  }
5857
5877
 
5858
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5878
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5859
5879
 
5860
5880
  /*
5861
5881
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5889,7 +5909,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5889
5909
  }
5890
5910
  }
5891
5911
 
5892
- /*! @azure/msal-common v16.0.1 2026-01-16 */
5912
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
5893
5913
 
5894
5914
  /*
5895
5915
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5927,7 +5947,7 @@ class AuthorizationCodeClient {
5927
5947
  * authorization_code_grant
5928
5948
  * @param request
5929
5949
  */
5930
- async acquireToken(request, authCodePayload) {
5950
+ async acquireToken(request, apiId, authCodePayload) {
5931
5951
  if (!request.code) {
5932
5952
  throw createClientAuthError(requestCannotBeMade);
5933
5953
  }
@@ -5942,7 +5962,7 @@ class AuthorizationCodeClient {
5942
5962
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
5943
5963
  // Validate response. This function throws a server error if an error is returned by the server.
5944
5964
  responseHandler.validateTokenResponse(response.body, request.correlationId);
5945
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
5965
+ 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);
5946
5966
  }
5947
5967
  /**
5948
5968
  * Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
@@ -6149,7 +6169,7 @@ class AuthorizationCodeClient {
6149
6169
  }
6150
6170
  }
6151
6171
 
6152
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6172
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6153
6173
 
6154
6174
  /*
6155
6175
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6179,20 +6199,20 @@ class RefreshTokenClient {
6179
6199
  // set performance telemetry client
6180
6200
  this.performanceClient = performanceClient;
6181
6201
  }
6182
- async acquireToken(request) {
6202
+ async acquireToken(request, apiId) {
6183
6203
  const reqTimestamp = nowSeconds();
6184
6204
  const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
6185
6205
  // Retrieve requestId from response headers
6186
6206
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
6187
6207
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
6188
6208
  responseHandler.validateTokenResponse(response.body, request.correlationId);
6189
- 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);
6209
+ 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);
6190
6210
  }
6191
6211
  /**
6192
6212
  * Gets cached refresh token and attaches to request, then calls acquireToken API
6193
6213
  * @param request
6194
6214
  */
6195
- async acquireTokenByRefreshToken(request) {
6215
+ async acquireTokenByRefreshToken(request, apiId) {
6196
6216
  // Cannot renew token if no request object is given.
6197
6217
  if (!request) {
6198
6218
  throw createClientConfigurationError(tokenRequestEmpty);
@@ -6206,7 +6226,7 @@ class RefreshTokenClient {
6206
6226
  // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
6207
6227
  if (isFOCI) {
6208
6228
  try {
6209
- return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
6229
+ return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
6210
6230
  }
6211
6231
  catch (e) {
6212
6232
  const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
@@ -6217,7 +6237,7 @@ class RefreshTokenClient {
6217
6237
  e.subError === CLIENT_MISMATCH_ERROR;
6218
6238
  // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
6219
6239
  if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
6220
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6240
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6221
6241
  // throw in all other cases
6222
6242
  }
6223
6243
  else {
@@ -6226,13 +6246,13 @@ class RefreshTokenClient {
6226
6246
  }
6227
6247
  }
6228
6248
  // fall back to application refresh token acquisition
6229
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
6249
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
6230
6250
  }
6231
6251
  /**
6232
6252
  * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
6233
6253
  * @param request
6234
6254
  */
6235
- async acquireTokenWithCachedRefreshToken(request, foci) {
6255
+ async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
6236
6256
  // fetches family RT or application RT based on FOCI value
6237
6257
  const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
6238
6258
  if (!refreshToken) {
@@ -6261,7 +6281,7 @@ class RefreshTokenClient {
6261
6281
  },
6262
6282
  };
6263
6283
  try {
6264
- return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
6284
+ return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
6265
6285
  }
6266
6286
  catch (e) {
6267
6287
  if (e instanceof InteractionRequiredAuthError) {
@@ -6374,7 +6394,7 @@ class RefreshTokenClient {
6374
6394
  }
6375
6395
  }
6376
6396
 
6377
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6397
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6378
6398
 
6379
6399
  /*
6380
6400
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6483,7 +6503,7 @@ class SilentFlowClient {
6483
6503
  }
6484
6504
  }
6485
6505
 
6486
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6506
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6487
6507
 
6488
6508
  /*
6489
6509
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6498,7 +6518,7 @@ const StubbedNetworkModule = {
6498
6518
  },
6499
6519
  };
6500
6520
 
6501
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6521
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6502
6522
 
6503
6523
  /*
6504
6524
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6722,7 +6742,7 @@ function extractLoginHint(account) {
6722
6742
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6723
6743
  }
6724
6744
 
6725
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6745
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6726
6746
  /*
6727
6747
  * Copyright (c) Microsoft Corporation. All rights reserved.
6728
6748
  * Licensed under the MIT License.
@@ -6732,7 +6752,7 @@ function extractLoginHint(account) {
6732
6752
  */
6733
6753
  const unexpectedError = "unexpected_error";
6734
6754
 
6735
- /*! @azure/msal-common v16.0.1 2026-01-16 */
6755
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6736
6756
 
6737
6757
  /*
6738
6758
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6993,7 +7013,7 @@ class ServerTelemetryManager {
6993
7013
  }
6994
7014
  }
6995
7015
 
6996
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7016
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
6997
7017
 
6998
7018
  /*
6999
7019
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7014,7 +7034,7 @@ function createJoseHeaderError(code) {
7014
7034
  return new JoseHeaderError(code);
7015
7035
  }
7016
7036
 
7017
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7037
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7018
7038
  /*
7019
7039
  * Copyright (c) Microsoft Corporation. All rights reserved.
7020
7040
  * Licensed under the MIT License.
@@ -7022,7 +7042,7 @@ function createJoseHeaderError(code) {
7022
7042
  const missingKidError = "missing_kid_error";
7023
7043
  const missingAlgError = "missing_alg_error";
7024
7044
 
7025
- /*! @azure/msal-common v16.0.1 2026-01-16 */
7045
+ /*! @azure/msal-common v16.0.3 2026-01-28 */
7026
7046
 
7027
7047
  /*
7028
7048
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7457,7 +7477,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
7457
7477
 
7458
7478
  /* eslint-disable header/header */
7459
7479
  const name = "@azure/msal-browser";
7460
- const version = "5.0.1";
7480
+ const version = "5.1.0";
7461
7481
 
7462
7482
  /*
7463
7483
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8162,6 +8182,7 @@ const InMemoryCacheKeys = {
8162
8182
  * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
8163
8183
  * 0-99 Silent Flow
8164
8184
  * 800-899 Auth Code Flow
8185
+ * 900-999 Misc
8165
8186
  */
8166
8187
  const ApiId = {
8167
8188
  acquireTokenRedirect: 861,
@@ -8173,6 +8194,30 @@ const ApiId = {
8173
8194
  acquireTokenSilent_silentFlow: 61,
8174
8195
  logout: 961,
8175
8196
  logoutPopup: 962,
8197
+ hydrateCache: 963,
8198
+ loadExternalTokens: 964,
8199
+ };
8200
+ /**
8201
+ * API Names for Telemetry purposes.
8202
+ */
8203
+ const ApiName = {
8204
+ 861: "acquireTokenRedirect",
8205
+ 862: "acquireTokenPopup",
8206
+ 863: "ssoSilent",
8207
+ 864: "acquireTokenSilent_authCode",
8208
+ 865: "handleRedirectPromise",
8209
+ 866: "acquireTokenByCode",
8210
+ 61: "acquireTokenSilent_silentFlow",
8211
+ 961: "logout",
8212
+ 962: "logoutPopup",
8213
+ 963: "hydrateCache",
8214
+ 964: "loadExternalTokens",
8215
+ };
8216
+ const apiIdToName = (id) => {
8217
+ if (typeof id === "number" && id in ApiName) {
8218
+ return ApiName[id];
8219
+ }
8220
+ return "unknown";
8176
8221
  };
8177
8222
  /*
8178
8223
  * Interaction type of the API - used for state and telemetry
@@ -9453,7 +9498,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
9453
9498
  * @param correlationId Correlation ID for logging
9454
9499
  * @returns Authentication result from the token response
9455
9500
  */
9456
- async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
9501
+ async handleTokenResponse(tokenResponse, requestScopes, correlationId, apiId) {
9457
9502
  this.logger.verbose("04a00a", correlationId);
9458
9503
  const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
9459
9504
  // Save tokens and create authentication result
@@ -9461,7 +9506,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
9461
9506
  authority: this.customAuthAuthority.canonicalAuthority,
9462
9507
  correlationId: tokenResponse.correlation_id ?? correlationId,
9463
9508
  scopes: requestScopes,
9464
- });
9509
+ }, apiId);
9465
9510
  return result;
9466
9511
  }
9467
9512
  // It is not necessary to implement this method from base class.
@@ -9640,7 +9685,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
9640
9685
  claims: parameters.claims,
9641
9686
  }),
9642
9687
  };
9643
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager);
9688
+ return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, correlationId, telemetryManager, apiId);
9644
9689
  }
9645
9690
  /**
9646
9691
  * Submits the password for sign-in flow.
@@ -9663,7 +9708,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
9663
9708
  claims: parameters.claims,
9664
9709
  }),
9665
9710
  };
9666
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager);
9711
+ return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, correlationId, telemetryManager, apiId);
9667
9712
  }
9668
9713
  /**
9669
9714
  * Signs in with continuation token.
@@ -9687,7 +9732,7 @@ class SignInClient extends CustomAuthInteractionClientBase {
9687
9732
  }),
9688
9733
  };
9689
9734
  // Call token endpoint.
9690
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager);
9735
+ return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, correlationId, telemetryManager, apiId);
9691
9736
  }
9692
9737
  /**
9693
9738
  * Common method to handle token endpoint calls and create sign-in results.
@@ -9697,12 +9742,12 @@ class SignInClient extends CustomAuthInteractionClientBase {
9697
9742
  * @param telemetryManager Telemetry manager for telemetry logging
9698
9743
  * @returns SignInCompletedResult | SignInJitRequiredResult | SignInMfaRequiredResult with authentication result
9699
9744
  */
9700
- async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager) {
9745
+ async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager, apiId) {
9701
9746
  this.logger.verbose("14tes8", correlationId);
9702
9747
  try {
9703
9748
  const tokenResponse = await tokenEndpointCaller();
9704
9749
  this.logger.verbose("11zi01", tokenResponse.correlation_id || correlationId);
9705
- const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
9750
+ const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
9706
9751
  return createSignInCompleteResult({
9707
9752
  correlationId: tokenResponse.correlation_id || correlationId,
9708
9753
  authenticationResult: authResult,
@@ -11332,7 +11377,7 @@ class JitClient extends CustomAuthInteractionClientBase {
11332
11377
  const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
11333
11378
  const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id ||
11334
11379
  continueResponse.correlation_id ||
11335
- correlationId);
11380
+ correlationId, apiId);
11336
11381
  return createJitCompletedResult({
11337
11382
  correlationId: continueResponse.correlation_id || correlationId,
11338
11383
  authenticationResult: authResult,
@@ -11427,7 +11472,7 @@ class MfaClient extends CustomAuthInteractionClientBase {
11427
11472
  this.logger.verbose("1rkonv", correlationId);
11428
11473
  const tokenResponse = await this.customAuthApiClient.signInApi.requestTokensWithOob(request);
11429
11474
  // Save tokens and create authentication result
11430
- const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId);
11475
+ const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
11431
11476
  return createMfaCompletedResult({
11432
11477
  correlationId: tokenResponse.correlation_id || correlationId,
11433
11478
  authenticationResult: result,
@@ -11478,7 +11523,7 @@ class CustomAuthSilentCacheClient extends CustomAuthInteractionClientBase {
11478
11523
  this.logger.verbose("05sqvp", correlationId);
11479
11524
  const refreshTokenClient = new RefreshTokenClient(clientConfig, this.performanceClient);
11480
11525
  this.logger.verbose("0ogm3j", correlationId);
11481
- const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest);
11526
+ const refreshTokenResult = await refreshTokenClient.acquireTokenByRefreshToken(silentRequest, ACCOUNT_GET_ACCESS_TOKEN);
11482
11527
  this.logger.verbose("0vydnd", correlationId);
11483
11528
  return refreshTokenResult;
11484
11529
  }
@@ -15073,17 +15118,22 @@ class BrowserCacheManager extends CacheManager {
15073
15118
  !isAccountEntity(parsedAccount)) {
15074
15119
  return null;
15075
15120
  }
15076
- return CacheManager.toObject({}, parsedAccount);
15121
+ const account = CacheManager.toObject({}, parsedAccount);
15122
+ this.performanceClient.addFields({
15123
+ accountCachedBy: apiIdToName(account.cachedByApiId),
15124
+ }, correlationId);
15125
+ return account;
15077
15126
  }
15078
15127
  /**
15079
15128
  * set account entity in the platform cache
15080
15129
  * @param account
15081
15130
  */
15082
- async setAccount(account, correlationId, kmsi) {
15131
+ async setAccount(account, correlationId, kmsi, apiId) {
15083
15132
  this.logger.trace("1bz3wr", correlationId);
15084
15133
  const key = this.generateAccountKey(getAccountInfo(account));
15085
15134
  const timestamp = Date.now().toString();
15086
15135
  account.lastUpdatedAt = timestamp;
15136
+ account.cachedByApiId = apiId;
15087
15137
  await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
15088
15138
  this.addAccountKeyToMap(key, correlationId);
15089
15139
  this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
@@ -15794,7 +15844,7 @@ class BrowserCacheManager extends CacheManager {
15794
15844
  * @param request
15795
15845
  */
15796
15846
  async hydrateCache(result, request) {
15797
- const idTokenEntity = createIdTokenEntity(result.account?.homeAccountId, result.account?.environment, result.idToken, this.clientId, result.tenantId);
15847
+ const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
15798
15848
  /**
15799
15849
  * meta data for cache stores time in seconds from epoch
15800
15850
  * AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
@@ -15802,7 +15852,7 @@ class BrowserCacheManager extends CacheManager {
15802
15852
  *
15803
15853
  * The next MSAL VFuture should map these both to same value if possible
15804
15854
  */
15805
- const accessTokenEntity = createAccessTokenEntity(result.account?.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
15855
+ const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
15806
15856
  // Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
15807
15857
  result.expiresOn
15808
15858
  ? toSecondsFromDate(result.expiresOn)
@@ -15815,7 +15865,7 @@ class BrowserCacheManager extends CacheManager {
15815
15865
  idToken: idTokenEntity,
15816
15866
  accessToken: accessTokenEntity,
15817
15867
  };
15818
- return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
15868
+ return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
15819
15869
  }
15820
15870
  /**
15821
15871
  * saves a cache record
@@ -15823,9 +15873,9 @@ class BrowserCacheManager extends CacheManager {
15823
15873
  * @param storeInCache {?StoreInCache}
15824
15874
  * @param correlationId {?string} correlation id
15825
15875
  */
15826
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
15876
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
15827
15877
  try {
15828
- await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
15878
+ await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
15829
15879
  }
15830
15880
  catch (e) {
15831
15881
  if (e instanceof CacheError &&
@@ -16103,7 +16153,7 @@ class InteractionHandler {
16103
16153
  * Function to handle response parameters from hash.
16104
16154
  * @param locationHash
16105
16155
  */
16106
- async handleCodeResponse(response, request) {
16156
+ async handleCodeResponse(response, request, apiId) {
16107
16157
  let authCodeResponse;
16108
16158
  try {
16109
16159
  authCodeResponse = getAuthorizationCodePayload(response, request.state);
@@ -16118,7 +16168,7 @@ class InteractionHandler {
16118
16168
  throw e;
16119
16169
  }
16120
16170
  }
16121
- return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
16171
+ return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
16122
16172
  }
16123
16173
  /**
16124
16174
  * Process auth code response from AAD
@@ -16127,7 +16177,7 @@ class InteractionHandler {
16127
16177
  * @param validateNonce
16128
16178
  * @returns
16129
16179
  */
16130
- async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
16180
+ async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
16131
16181
  this.logger.trace("0mf2hb", request.correlationId);
16132
16182
  // Assign code to request
16133
16183
  this.authCodeRequest.code = authCodeResponse.code;
@@ -16148,7 +16198,7 @@ class InteractionHandler {
16148
16198
  }
16149
16199
  }
16150
16200
  // Acquire token with retrieved code.
16151
- const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, authCodeResponse));
16201
+ const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
16152
16202
  return tokenResponse;
16153
16203
  }
16154
16204
  /**
@@ -16681,7 +16731,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
16681
16731
  */
16682
16732
  async cacheAccount(accountEntity, kmsi) {
16683
16733
  // Store the account info and hence `nativeAccountId` in browser cache
16684
- await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
16734
+ await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
16685
16735
  // Remove any existing cached tokens for this account in browser storage
16686
16736
  this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
16687
16737
  }
@@ -16710,7 +16760,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
16710
16760
  idToken: cachedIdToken,
16711
16761
  accessToken: cachedAccessToken,
16712
16762
  };
16713
- return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
16763
+ return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
16714
16764
  }
16715
16765
  getExpiresInValue(tokenType, expiresIn) {
16716
16766
  return tokenType === AuthenticationScheme.POP
@@ -17089,7 +17139,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
17089
17139
  // Create popup interaction handler.
17090
17140
  const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
17091
17141
  // Handle response from hash string.
17092
- const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
17142
+ const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
17093
17143
  return result;
17094
17144
  }
17095
17145
  /**
@@ -17136,7 +17186,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
17136
17186
  cloud_instance_name: decryptedData.cloud_instance_name,
17137
17187
  msgraph_host: decryptedData.msgraph_host,
17138
17188
  };
17139
- return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
17189
+ return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
17140
17190
  }
17141
17191
 
17142
17192
  /*
@@ -19026,7 +19076,7 @@ class SilentRefreshClient extends StandardInteractionClient {
19026
19076
  account: silentRequest.account,
19027
19077
  });
19028
19078
  // Send request to renew token. Auth module will throw errors if token cannot be renewed.
19029
- return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest).catch((e) => {
19079
+ return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
19030
19080
  e.setCorrelationId(this.correlationId);
19031
19081
  serverTelemetryManager.cacheFailedRequest(e);
19032
19082
  throw e;
@@ -19123,7 +19173,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
19123
19173
  msgraph_host: request.msGraphHost,
19124
19174
  cloud_graph_host_name: request.cloudGraphHostName,
19125
19175
  cloud_instance_host_name: request.cloudInstanceHostName,
19126
- }, silentRequest, false);
19176
+ }, silentRequest, this.apiId, false);
19127
19177
  }
19128
19178
  catch (e) {
19129
19179
  if (e instanceof AuthError) {
@@ -19936,7 +19986,7 @@ class StandardController {
19936
19986
  this.logger.verbose("16jycr", result.correlationId);
19937
19987
  // Account gets saved to browser storage regardless of native or not
19938
19988
  const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
19939
- await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
19989
+ await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
19940
19990
  if (result.fromPlatformBroker) {
19941
19991
  this.logger.verbose("1fxyu8", result.correlationId);
19942
19992
  // Tokens from native broker are stored in-memory