@azure/msal-browser 5.28.0 → 5.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) 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/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  22. package/dist/controllers/StandardController.mjs +1 -1
  23. package/dist/crypto/BrowserCrypto.mjs +1 -1
  24. package/dist/crypto/CryptoOps.mjs +1 -1
  25. package/dist/crypto/PkceGenerator.mjs +1 -1
  26. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  27. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  28. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  29. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +6 -4
  30. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  31. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +58 -62
  32. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  33. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  34. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +3 -5
  51. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  52. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +19 -13
  53. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  54. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +8 -2
  55. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
  56. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +58 -69
  57. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  58. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +3 -3
  59. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +42 -15
  60. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  61. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +17 -4
  62. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  63. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +14 -18
  65. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +2 -4
  67. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +2 -3
  69. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +17 -6
  71. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  72. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +110 -0
  73. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -0
  74. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  75. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  76. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  77. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  78. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +2 -1
  79. package/dist/custom_auth/core/error/InvalidArgumentError.mjs.map +1 -1
  80. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  81. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  82. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  83. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  84. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  85. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  86. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  87. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  88. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  89. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  90. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  91. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  92. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  93. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  94. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  95. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  96. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  97. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +256 -150
  98. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  99. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +2 -6
  100. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
  101. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +10 -3
  102. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  103. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  104. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  105. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  106. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  107. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  108. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  109. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  110. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  111. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  112. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -7
  113. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +1 -1
  115. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +35 -19
  116. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +20 -9
  120. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -2
  125. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  126. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  128. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +5 -7
  129. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs.map +1 -1
  130. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +3 -2
  131. package/dist/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  132. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +17 -2
  133. package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
  134. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  135. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  136. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  137. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  138. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  139. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  140. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  141. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  142. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  143. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  144. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  145. package/dist/custom_auth/index.mjs +4 -3
  146. package/dist/custom_auth/index.mjs.map +1 -1
  147. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  148. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  149. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  150. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  151. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  152. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  153. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  154. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  155. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  156. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  157. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  158. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +23 -7
  159. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +24 -0
  161. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs.map +1 -0
  162. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  163. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  164. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  165. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  166. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  167. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  168. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  169. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  170. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  171. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  172. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  173. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +4 -7
  176. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  177. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +2 -2
  178. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -1
  179. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  180. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  181. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  182. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  183. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  184. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  185. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  186. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  187. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  188. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  189. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  190. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  191. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  192. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  193. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +17 -8
  194. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +78 -0
  196. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs.map +1 -0
  197. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +48 -0
  198. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs.map +1 -0
  199. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +49 -0
  200. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs.map +1 -0
  201. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +17 -24
  202. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs.map +1 -1
  203. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  204. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  205. package/dist/encode/Base64Decode.mjs +1 -1
  206. package/dist/encode/Base64Encode.mjs +1 -1
  207. package/dist/error/BrowserAuthError.mjs +1 -1
  208. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  209. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  210. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  211. package/dist/error/NativeAuthError.mjs +1 -1
  212. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  213. package/dist/error/NestedAppAuthError.mjs +1 -1
  214. package/dist/event/EventHandler.mjs +1 -1
  215. package/dist/event/EventMessage.mjs +1 -1
  216. package/dist/event/EventType.mjs +1 -1
  217. package/dist/index.mjs +1 -1
  218. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  219. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  220. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +38 -31
  221. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  222. package/dist/interaction_client/PopupClient.mjs +1 -1
  223. package/dist/interaction_client/RedirectClient.mjs +6 -2
  224. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  225. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  226. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  227. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  228. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  229. package/dist/interaction_client/StandardInteractionClient.mjs +5 -1
  230. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  231. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  232. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  233. package/dist/log-strings-mapping.json +21 -9
  234. package/dist/naa/BridgeError.mjs +1 -1
  235. package/dist/naa/BridgeProxy.mjs +1 -1
  236. package/dist/naa/BridgeStatusCode.mjs +1 -1
  237. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  238. package/dist/navigation/NavigationClient.mjs +1 -1
  239. package/dist/network/FetchClient.mjs +1 -1
  240. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  241. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  242. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  243. package/dist/packageMetadata.mjs +2 -2
  244. package/dist/popup_relay/constants.mjs +1 -1
  245. package/dist/popup_relay/index.mjs +1 -1
  246. package/dist/popup_relay/relayClient.mjs +1 -1
  247. package/dist/protocol/Authorize.mjs +1 -1
  248. package/dist/redirect_bridge/index.mjs +1 -1
  249. package/dist/request/RequestHelpers.mjs +1 -1
  250. package/dist/request/SilentRequestHelpers.mjs +1 -1
  251. package/dist/response/ResponseHandler.mjs +1 -1
  252. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  253. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  254. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  255. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  256. package/dist/utils/BrowserConstants.mjs +1 -1
  257. package/dist/utils/BrowserDetection.mjs +1 -1
  258. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  259. package/dist/utils/BrowserUtils.mjs +1 -1
  260. package/dist/utils/Helpers.mjs +1 -1
  261. package/dist/utils/IframeMonitor.mjs +1 -1
  262. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  263. package/dist/utils/PopupMonitor.mjs +1 -1
  264. package/dist/utils/PopupOriginCheck.mjs +1 -1
  265. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  266. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  267. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  268. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  269. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  270. package/dist/webBrokerBridge/index.mjs +1 -1
  271. package/lib/custom-auth-path/log-strings-mapping.json +21 -9
  272. package/lib/custom-auth-path/msal-custom-auth.cjs +1160 -765
  273. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  274. package/lib/custom-auth-path/msal-custom-auth.js +1160 -765
  275. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  276. package/lib/log-strings-mapping.json +7 -3
  277. package/lib/msal-browser.cjs +187 -117
  278. package/lib/msal-browser.cjs.map +1 -1
  279. package/lib/msal-browser.js +187 -117
  280. package/lib/msal-browser.js.map +1 -1
  281. package/lib/msal-browser.min.js +2 -2
  282. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  283. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  284. package/lib/popup-relay/msal-popup-relay.js +2 -2
  285. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  286. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  287. package/lib/redirect-bridge/msal-redirect-bridge.cjs +39 -10
  288. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  289. package/lib/redirect-bridge/msal-redirect-bridge.js +39 -10
  290. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  291. package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  292. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  293. package/package.json +2 -2
  294. package/src/custom_auth/CustomAuthActionInputs.ts +12 -5
  295. package/src/custom_auth/CustomAuthPublicClientApplication.ts +5 -3
  296. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +5 -3
  297. package/src/custom_auth/controller/CustomAuthStandardController.ts +79 -110
  298. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +1 -2
  299. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +1 -4
  300. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +5 -4
  301. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +28 -16
  302. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +6 -0
  303. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +83 -72
  304. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +3 -3
  305. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +7 -5
  306. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +10 -6
  307. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +9 -6
  308. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +4 -6
  309. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +36 -0
  310. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +6 -8
  311. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +2 -2
  312. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +61 -12
  313. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +21 -3
  314. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +30 -24
  315. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +1 -3
  316. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +11 -2
  317. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +1 -2
  318. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +26 -7
  319. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +179 -0
  320. package/src/custom_auth/core/error/InvalidArgumentError.ts +1 -1
  321. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +12 -12
  322. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +394 -238
  323. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +2 -6
  324. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -15
  325. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +63 -26
  326. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -6
  327. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +74 -26
  328. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +48 -9
  329. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +4 -6
  330. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +0 -6
  331. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +14 -53
  332. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +0 -18
  333. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +32 -13
  334. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +8 -9
  335. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +4 -5
  336. package/src/custom_auth/core/telemetry/PublicApiId.ts +1 -0
  337. package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
  338. package/src/custom_auth/index.ts +10 -11
  339. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
  340. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +28 -5
  341. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.ts +30 -0
  342. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +4 -8
  343. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +4 -7
  344. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +3 -6
  345. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +0 -3
  346. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +2 -3
  347. package/src/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.ts +49 -0
  348. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +8 -4
  349. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +16 -4
  350. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +26 -5
  351. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.ts +101 -0
  352. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.ts +53 -0
  353. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.ts +97 -0
  354. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +0 -6
  355. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +25 -48
  356. package/src/interaction_client/PlatformAuthInteractionClient.ts +53 -38
  357. package/src/interaction_client/RedirectClient.ts +5 -1
  358. package/src/interaction_client/StandardInteractionClient.ts +4 -0
  359. package/src/packageMetadata.ts +1 -1
  360. package/types/custom_auth/CustomAuthActionInputs.d.ts +12 -5
  361. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  362. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  363. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +5 -3
  364. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  365. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +5 -3
  366. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  367. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +2 -0
  368. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  369. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +1 -2
  370. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  371. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +1 -4
  372. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  373. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +5 -4
  374. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  375. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +17 -8
  376. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  377. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +6 -0
  378. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
  379. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +23 -44
  380. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  381. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +3 -3
  382. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +7 -6
  383. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  384. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +7 -6
  385. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  386. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
  387. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  388. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +4 -6
  389. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  390. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +20 -0
  391. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  392. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +6 -8
  393. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  394. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +2 -2
  395. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +3 -6
  396. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  397. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +3 -3
  398. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  399. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +6 -8
  400. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  401. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +1 -3
  402. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  403. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +9 -2
  404. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
  405. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +1 -2
  406. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  407. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +5 -6
  408. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  409. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +23 -0
  410. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  411. package/types/custom_auth/core/error/InvalidArgumentError.d.ts +1 -0
  412. package/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -1
  413. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +8 -1
  414. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  415. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +12 -10
  416. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  417. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +1 -1
  418. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
  419. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -5
  420. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +22 -3
  422. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
  424. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +2 -1
  426. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
  427. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -1
  428. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
  430. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -8
  431. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  432. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +18 -6
  434. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +6 -10
  436. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  437. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +0 -4
  438. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
  439. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +1 -0
  440. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  441. package/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
  442. package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  443. package/types/custom_auth/index.d.ts +5 -5
  444. package/types/custom_auth/index.d.ts.map +1 -1
  445. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
  446. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  447. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +7 -5
  448. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  449. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts +7 -0
  450. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts.map +1 -0
  451. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -8
  452. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  453. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +5 -6
  454. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  455. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +3 -6
  456. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  457. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +0 -1
  458. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -1
  459. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +3 -2
  460. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -1
  461. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts +27 -0
  462. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts.map +1 -0
  463. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +6 -3
  464. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +12 -3
  466. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  467. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +8 -3
  468. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  469. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts +24 -0
  470. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts.map +1 -0
  471. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts +18 -0
  472. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts.map +1 -0
  473. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts +7 -0
  474. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts.map +1 -0
  475. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +0 -4
  476. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -1
  477. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +5 -4
  478. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
  479. package/types/interaction_client/PlatformAuthInteractionClient.d.ts +4 -3
  480. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  481. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  482. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  483. package/types/packageMetadata.d.ts +1 -1
  484. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +0 -82
  485. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +0 -1
  486. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +0 -25
  487. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +0 -1
  488. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +0 -45
  489. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +0 -1
  490. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +0 -23
  491. package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +0 -19
  492. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -22
  493. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +0 -115
  494. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +0 -34
  495. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -61
  496. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +0 -14
  497. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +0 -1
  498. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +0 -13
  499. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +0 -1
  500. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -9
  501. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +0 -1
  502. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -17
  503. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +0 -1
  504. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +0 -11
  505. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +0 -1
  506. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +0 -19
  507. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthActionErrorBase } from '../../AuthFlowErrorBase.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
4
4
  import { AuthMethodRegistrationChallengeMethodError } from '../error_type/AuthMethodRegistrationError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
4
4
  import { AuthMethodRegistrationSubmitChallengeError } from '../error_type/AuthMethodRegistrationError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
4
4
  import { AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
4
4
  import { AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
4
4
  import { JIT_VERIFICATION_REQUIRED_RESULT_TYPE, JIT_COMPLETED_RESULT_TYPE } from '../../../interaction_client/jit/result/JitActionResult.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthActionErrorBase } from '../../AuthFlowErrorBase.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
4
4
  import { MfaRequestChallengeError } from '../error_type/MfaError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
4
4
  import { MfaSubmitChallengeError } from '../error_type/MfaError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
4
4
  import { MFA_COMPLETED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
4
4
  import { MFA_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { MfaSubmitChallengeResult } from '../result/MfaSubmitChallengeResult.mjs';
4
4
  import { MfaRequestChallengeResult } from '../result/MfaRequestChallengeResult.mjs';
@@ -1,14 +1,12 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
5
5
  * Licensed under the MIT License.
6
6
  */
7
7
  /**
8
- * The native auth V2 flow that a result or error originates from (sign-in,
9
- * sign-up, or password reset). It lets a shared result or error type report
10
- * which entry flow produced it; `Unknown` is used when the flow cannot be
11
- * determined.
8
+ * The native auth V2 flow that a result or error originates from.
9
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
12
10
  */
13
11
  const CustomAuthFlowScenarioV2 = {
14
12
  SignIn: "signIn",
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthFlowScenarioV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;;;;AAKG;AACI,MAAM,wBAAwB,GAAG;AACpC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,OAAO,EAAE,SAAS;;;;;"}
1
+ {"version":3,"file":"CustomAuthFlowScenarioV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;;AAGG;AACI,MAAM,wBAAwB,GAAG;AACpC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,OAAO,EAAE,SAAS;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common/browser';
4
4
  import { CustomAuthError } from '../../error/CustomAuthError.mjs';
@@ -13,8 +13,8 @@ import { CustomAuthFlowScenarioV2 } from './CustomAuthFlowScenarioV2.mjs';
13
13
  * Licensed under the MIT License.
14
14
  */
15
15
  /**
16
- * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
17
- * to narrow the state before accessing its members.
16
+ * Result of a native auth V2 operation.
17
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
18
18
  */
19
19
  class CustomAuthResultV2 {
20
20
  constructor(state, data, scenario = CustomAuthFlowScenarioV2.Unknown) {
@@ -23,8 +23,7 @@ class CustomAuthResultV2 {
23
23
  this.scenario = scenario;
24
24
  }
25
25
  /**
26
- * Narrows the result to a specific state by its `stateType` discriminator.
27
- * A successful match makes the state's properties available without a cast.
26
+ * Checks whether the result matches a state type and narrows its state.
28
27
  * @param stateType - The state type to test for.
29
28
  * @returns True (and narrows `state`) when the current state matches `stateType`.
30
29
  */
@@ -32,25 +31,32 @@ class CustomAuthResultV2 {
32
31
  return this.state.stateType === stateType;
33
32
  }
34
33
  /**
35
- * Checks whether the result is in the terminal failed state. A failed result
36
- * contains the unified V2 flow error.
34
+ * Checks whether the operation failed.
37
35
  * @returns True (and narrows `state`) when the operation failed.
38
36
  */
39
37
  isFailed() {
40
38
  return this.state.stateType === "failed";
41
39
  }
42
40
  /**
43
- * Creates a failed result from the supplied error. The result uses the
44
- * shared {@link FailedStateV2} terminal state and unified V2 flow error.
41
+ * Checks whether the current state requires a password.
42
+ * @returns True (and narrows `state`) when a password is required.
43
+ */
44
+ isPasswordRequired() {
45
+ return this.state.stateType === "passwordRequired";
46
+ }
47
+ /**
48
+ * Creates a failed result from the supplied error.
49
+ * Optional error context identifies MFA verification or authentication-method registration.
45
50
  * @param error - The error that occurred.
46
51
  * @param options - The flow-error context.
47
52
  * @returns A failed result carrying the unified V2 flow error.
48
53
  */
49
54
  static createWithError(error, options) {
50
- const { scenario = CustomAuthFlowScenarioV2.Unknown, correlationId } = options;
51
- const errorData = CustomAuthResultV2.createErrorData(error, correlationId);
52
- const flowError = new AuthFlowErrorV2(errorData, scenario);
53
- const result = new CustomAuthResultV2(new FailedStateV2(), undefined, scenario);
55
+ const { correlationId } = options;
56
+ const flowError = error instanceof AuthFlowErrorV2
57
+ ? error
58
+ : new AuthFlowErrorV2(CustomAuthResultV2.createErrorData(error, correlationId), options.scenario ?? CustomAuthFlowScenarioV2.Unknown, options.errorContext);
59
+ const result = new CustomAuthResultV2(new FailedStateV2(), undefined, flowError.scenario);
54
60
  result.error = flowError;
55
61
  return result;
56
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthResultV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAgBH;;;AAGG;MACU,kBAAkB,CAAA;AAI3B,IAAA,WAAA,CACoB,KAAa,EACb,IAAY,EACZ,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAAA;QAFrE,IAAA,CAAA,KAAK,GAAL,KAAK,CAAQ;QACb,IAAA,CAAA,IAAI,GAAJ,IAAI,CAAQ;QACZ,IAAA,CAAA,QAAQ,GAAR,QAAQ,CAA6D;IACtF,CAAC;AAIJ;;;;;AAKG;AACH,IAAA,OAAO,CACH,SAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IAC9C,CAAC;AAED;;;;AAIG;IACH,QAAQ,GAAA;AAGJ,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC;IAC7C,CAAC;AAED;;;;;;AAMG;AACH,IAAA,OAAO,eAAe,CAClB,KAAc,EACd,OAA+B,EAAA;QAE/B,MAAM,EAAE,QAAQ,GAAG,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,GAChE,OAAO,CAAC;QACZ,MAAM,SAAS,GAAG,kBAAkB,CAAC,eAA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,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"CustomAuthResultV2.mjs","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAkBH;;;AAGG;MACU,kBAAkB,CAAA;AAI3B,IAAA,WAAA,CACoB,KAAa,EACb,IAAY,EACZ,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAAA;QAFrE,IAAA,CAAA,KAAK,GAAL,KAAK,CAAQ;QACb,IAAA,CAAA,IAAI,GAAJ,IAAI,CAAQ;QACZ,IAAA,CAAA,QAAQ,GAAR,QAAQ,CAA6D;IACtF,CAAC;AAIJ;;;;AAIG;AACH,IAAA,OAAO,CACH,SAAgB,EAAA;AAEhB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;IAC9C,CAAC;AAED;;;AAGG;IACH,QAAQ,GAAA;AAGJ,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC;IAC7C,CAAC;AAED;;;AAGG;IACH,kBAAkB,GAAA;AAGd,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,kBAAkB,CAAC;IACvD,CAAC;AAED;;;;;;AAMG;AACH,IAAA,OAAO,eAAe,CAClB,KAAc,EACd,OAA+B,EAAA;AAE/B,QAAA,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;AAClC,QAAA,MAAM,SAAS,GACX,KAAK,YAAY,eAAe;AAC5B,cAAE,KAAK;cACL,IAAI,eAAe,CACf,kBAAkB,CAAC,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,EACxD,OAAO,CAAC,QAAQ,IAAI,wBAAwB,CAAC,OAAO,EACpD,OAAO,CAAC,YAAY,CACvB,CAAC;AAEZ,QAAA,MAAM,MAAM,GAAG,IAAI,kBAAkB,CACjC,IAAI,aAAa,EAAE,EACnB,SAAS,EACT,SAAS,CAAC,QAAQ,CACrB,CAAC;AACF,QAAA,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC;AAEzB,QAAA,OAAO,MAAM,CAAC;IAClB,CAAC;AAEO,IAAA,OAAO,eAAe,CAC1B,KAAc,EACd,aAAsB,EAAA;QAEtB,IAAI,KAAK,YAAY,eAAe,EAAE;AAClC,YAAA,OAAO,KAAK,CAAC;AAChB,QAAA,CAAA;QAED,IAAI,KAAK,YAAY,SAAS,EAAE;YAC5B,MAAM,UAAU,GAAa,EAAE,CAAC;YAEhC,IAAI,SAAS,IAAI,KAAK,EAAE;AACpB,gBAAA,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE;oBACnC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACnC,oBAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;AACd,wBAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,oBAAA,CAAA;AACJ,gBAAA,CAAA;AAAM,qBAAA,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE;AAC1C,oBAAA,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAClC,gBAAA,CAAA;AACJ,YAAA,CAAA;YAED,OAAO,IAAI,mBAAmB,CAC1B,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,QAAQ,EACd,UAAU,EACV,KAAK,CAAC,aAAa,CACtB,CAAC;AACL,QAAA,CAAA;AAED,QAAA,OAAO,IAAI,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACrD,CAAC;AACJ;;;;"}
@@ -1,13 +1,19 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
5
5
  * Licensed under the MIT License.
6
6
  */
7
+ const ATTRIBUTE_VALIDATION_ERROR = "attributeValidationError";
7
8
  const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
8
9
  const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
10
+ const PASSWORD_BANNED = "passwordBanned";
11
+ const PASSWORD_IS_INVALID = "passwordIsInvalid";
12
+ const PASSWORD_RECENTLY_USED = "passwordRecentlyUsed";
13
+ const PASSWORD_TOO_LONG = "passwordTooLong";
14
+ const PASSWORD_TOO_SHORT = "passwordTooShort";
9
15
  const PASSWORD_TOO_WEAK = "passwordTooWeak";
10
16
  const USER_NOT_FOUND = "userNotFound";
11
17
 
12
- export { INVALID_ONE_TIME_CODE, INVALID_USERNAME_OR_PASSWORD, PASSWORD_TOO_WEAK, USER_NOT_FOUND };
18
+ export { ATTRIBUTE_VALIDATION_ERROR, INVALID_ONE_TIME_CODE, INVALID_USERNAME_OR_PASSWORD, PASSWORD_BANNED, PASSWORD_IS_INVALID, PASSWORD_RECENTLY_USED, PASSWORD_TOO_LONG, PASSWORD_TOO_SHORT, PASSWORD_TOO_WEAK, USER_NOT_FOUND };
13
19
  //# sourceMappingURL=AuthFlowErrorSubcodesV2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthFlowErrorSubcodesV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,qBAAqB,GAAG,qBAAqB;AACnD,MAAM,4BAA4B,GAAG,4BAA4B;AACjE,MAAM,iBAAiB,GAAG,kBAAkB;AAC5C,MAAM,cAAc,GAAG;;;;"}
1
+ {"version":3,"file":"AuthFlowErrorSubcodesV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,0BAA0B,GAAG,2BAA2B;AAC9D,MAAM,qBAAqB,GAAG,qBAAqB;AACnD,MAAM,4BAA4B,GAAG,4BAA4B;AACjE,MAAM,eAAe,GAAG,iBAAiB;AACzC,MAAM,mBAAmB,GAAG,oBAAoB;AAChD,MAAM,sBAAsB,GAAG,uBAAuB;AACtD,MAAM,iBAAiB,GAAG,kBAAkB;AAC5C,MAAM,kBAAkB,GAAG,mBAAmB;AAC9C,MAAM,iBAAiB,GAAG,kBAAkB;AAC5C,MAAM,cAAc,GAAG;;;;"}
@@ -1,9 +1,9 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { CustomAuthApiError } from '../../../error/CustomAuthApiError.mjs';
4
4
  import { InvalidArgumentError } from '../../../error/InvalidArgumentError.mjs';
5
5
  import { WEB_REDIRECT_REQUIRED } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
6
- import { USER_NOT_FOUND, INVALID_ONE_TIME_CODE, PASSWORD_TOO_WEAK, INVALID_USERNAME_OR_PASSWORD } from './AuthFlowErrorSubcodesV2.mjs';
6
+ import { ATTRIBUTE_VALIDATION_ERROR, USER_NOT_FOUND, INVALID_ONE_TIME_CODE, PASSWORD_TOO_WEAK, PASSWORD_TOO_SHORT, PASSWORD_TOO_LONG, PASSWORD_IS_INVALID, PASSWORD_RECENTLY_USED, PASSWORD_BANNED, INVALID_USERNAME_OR_PASSWORD } from './AuthFlowErrorSubcodesV2.mjs';
7
7
  import { CustomAuthFlowScenarioV2 } from '../CustomAuthFlowScenarioV2.mjs';
8
8
 
9
9
  /*
@@ -11,12 +11,13 @@ import { CustomAuthFlowScenarioV2 } from '../CustomAuthFlowScenarioV2.mjs';
11
11
  * Licensed under the MIT License.
12
12
  */
13
13
  /**
14
- * Error returned by a native authentication V2 operation. Use its classifiers
15
- * to handle known failures while retaining raw diagnostics through `errorData`.
14
+ * Error returned by a native authentication V2 operation.
15
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
16
16
  */
17
17
  class AuthFlowErrorV2 {
18
- constructor(errorData, scenario = CustomAuthFlowScenarioV2.Unknown) {
18
+ constructor(errorData, scenario = CustomAuthFlowScenarioV2.Unknown, errorContext = "default") {
19
19
  this.errorData = errorData;
20
+ this.errorContext = errorContext;
20
21
  this.scenario = scenario;
21
22
  }
22
23
  get correlationId() {
@@ -33,123 +34,111 @@ class AuthFlowErrorV2 {
33
34
  ? this.errorData.innerErrorCode
34
35
  : undefined;
35
36
  }
36
- /**
37
- * Gets the attribute ids that the service reports as required.
38
- */
39
37
  get requiredAttributes() {
40
38
  return this.getAttributeIdsByCode("attributeRequired");
41
39
  }
42
- /**
43
- * Gets the attribute ids whose submitted values failed validation.
44
- */
45
40
  get invalidAttributes() {
46
41
  return this.getAttributeIdsByCode("attributeValidationFailed");
47
42
  }
48
43
  /**
49
- * Checks if the error requires the flow to continue in the browser. The
50
- * server surfaces this as the `web_redirect_required` OAuth suberror, so a
51
- * browser hand-off arrives as a `FailedStateV2` on which this detector
52
- * returns true.
44
+ * Checks whether the flow must continue in the browser.
53
45
  * @returns True if the browser is required, false otherwise.
54
46
  */
55
47
  isBrowserRequired() {
56
- return this.errorData.subError === WEB_REDIRECT_REQUIRED;
48
+ return (this.errorData.error === "invalid_grant" &&
49
+ this.errorData.subError === WEB_REDIRECT_REQUIRED);
57
50
  }
58
51
  /**
59
- * Checks if the error is due to a caller-supplied argument failing
60
- * client-side validation before the request was issued (for example an empty
61
- * username, code, or password, or an unknown method id). Use it to prompt the
62
- * user to correct the input rather than treating it as a server failure.
52
+ * Checks whether a caller-supplied argument failed client-side validation.
63
53
  * @returns True if the input was invalid, false otherwise.
64
54
  */
65
55
  isInvalidInput() {
66
56
  return this.errorData instanceof InvalidArgumentError;
67
57
  }
68
58
  /**
69
- * Checks whether the service rejected the username parameter. Use it to ask
70
- * the user to correct the supplied username.
71
- * @returns True when the username is invalid, otherwise false.
59
+ * Checks whether the supplied username failed local validation.
60
+ * @returns True when local username validation failed.
72
61
  */
73
62
  isInvalidUsername() {
74
- return this.isUserInvalidError();
63
+ return (this.errorData instanceof InvalidArgumentError &&
64
+ this.errorData.argName === "inputs.username");
75
65
  }
76
66
  /**
77
- * Checks whether the supplied username does not identify an account. Use it
78
- * to distinguish a missing account from other request failures.
67
+ * Checks whether the supplied username does not identify an account.
79
68
  * @returns True when the service reports that the user was not found.
80
69
  */
81
70
  isUserNotFound() {
82
71
  return this.isUserNotFoundError();
83
72
  }
84
73
  /**
85
- * Checks whether the service rejected the supplied sign-in credentials. This
86
- * classifier does not identify new-password policy failures.
87
- * @returns True when the username or password is incorrect.
88
- */
89
- isInvalidCredentials() {
90
- return this.isPasswordIncorrectError();
91
- }
92
- /**
93
- * Checks whether the service rejected a one-time code. Use it to prompt the
94
- * user to re-enter the code or request a new one.
74
+ * Checks whether the service rejected a one-time code.
95
75
  * @returns True when the one-time code is invalid, otherwise false.
96
76
  */
97
77
  isInvalidCode() {
98
- return this.isInvalidCodeError();
78
+ return this.errorContext === "default" && this.isInvalidCodeError();
99
79
  }
100
80
  /**
101
- * Checks whether a new password violates password policy. It recognizes
102
- * both weak-password responses and password-targeted validation details.
103
- * @returns True when the new password is invalid, otherwise false.
81
+ * Checks whether the service rejected an MFA or registration challenge.
82
+ * @returns True when the verification challenge is invalid.
104
83
  */
105
- isInvalidPassword() {
106
- return (this.isInvalidPasswordError() ||
107
- this.isPasswordPolicyViolationError());
84
+ isInvalidChallenge() {
85
+ return ((this.errorContext === "mfaVerification" ||
86
+ this.errorContext === "authMethodRegistration") &&
87
+ this.isInvalidCodeError());
108
88
  }
109
89
  /**
110
- * Checks whether an account already exists for the supplied identifier.
111
- * This can occur at different stages while completing sign-up.
112
- * @returns True if the account already exists, otherwise false.
90
+ * Checks whether the service rejected non-password attributes.
91
+ * Password-targeted validation is reported only by isInvalidPassword().
92
+ * @returns True when at least one non-password attribute is invalid.
113
93
  */
114
- isUserAlreadyExists() {
115
- return this.getAttributeValidationDetails().some((detail) => detail.code === "userAlreadyExists");
94
+ isInvalidAttributes() {
95
+ if (!this.isAttributeValidationError() ||
96
+ this.isPasswordAttributeValidationError()) {
97
+ return false;
98
+ }
99
+ const attributeIds = this.getAttributeValidationDetails()
100
+ .flatMap((detail) => Array.isArray(detail.attributeIds) ? detail.attributeIds : [])
101
+ .filter((attributeId) => typeof attributeId === "string");
102
+ return attributeIds.some((attributeId) => attributeId.length > 0);
116
103
  }
117
104
  /**
118
- * Checks whether the service requires attributes omitted from the request.
119
- * Use it to collect the required attributes before resubmitting.
120
- * @returns True when required attributes are missing, otherwise false.
105
+ * Checks whether the service rejected a supplied password.
106
+ * @returns True when the supplied password is invalid, otherwise false.
121
107
  */
122
- isMissingRequiredAttributes() {
123
- return this.requiredAttributes.length > 0;
108
+ isInvalidPassword() {
109
+ return (this.isPasswordIncorrectError() ||
110
+ this.isInvalidPasswordError() ||
111
+ this.isPasswordAttributeValidationError());
124
112
  }
125
- isUserNotFoundError() {
113
+ isAttributeValidationError() {
126
114
  return (this.errorData.error === "invalidRequest" &&
127
- (this.innerErrorCode === USER_NOT_FOUND ||
128
- this.errorData.errorDescription?.includes("AADSTS50034") ===
129
- true));
115
+ this.innerErrorCode === ATTRIBUTE_VALIDATION_ERROR);
130
116
  }
131
- isUserInvalidError() {
117
+ isUserNotFoundError() {
132
118
  return (this.errorData.error === "invalidRequest" &&
133
- this.errorData.errorDescription?.includes("AADSTS90100") === true &&
134
- this.errorData.errorDescription
135
- .toLowerCase()
136
- .includes("username parameter"));
119
+ this.innerErrorCode === USER_NOT_FOUND);
137
120
  }
138
121
  isInvalidCodeError() {
139
122
  return (this.errorData.error === "invalidGrant" &&
140
123
  this.innerErrorCode === INVALID_ONE_TIME_CODE);
141
124
  }
142
125
  isInvalidPasswordError() {
126
+ const innerErrorCode = this.innerErrorCode;
143
127
  return (this.errorData.error === "invalidRequest" &&
144
- this.innerErrorCode === PASSWORD_TOO_WEAK);
145
- }
146
- isPasswordPolicyViolationError() {
128
+ (innerErrorCode === PASSWORD_TOO_WEAK ||
129
+ innerErrorCode === PASSWORD_TOO_SHORT ||
130
+ innerErrorCode === PASSWORD_TOO_LONG ||
131
+ innerErrorCode === PASSWORD_IS_INVALID ||
132
+ innerErrorCode === PASSWORD_RECENTLY_USED ||
133
+ innerErrorCode === PASSWORD_BANNED));
134
+ }
135
+ isPasswordAttributeValidationError() {
136
+ if (!this.isAttributeValidationError()) {
137
+ return false;
138
+ }
147
139
  return this.getAttributeValidationDetails().some((detail) => {
148
140
  const attributeIds = detail.attributeIds;
149
- return (detail.code === "passwordPolicyViolation" &&
150
- Array.isArray(attributeIds) &&
151
- attributeIds.some((attributeId) => typeof attributeId === "string" &&
152
- attributeId.toLowerCase() === "password"));
141
+ return (Array.isArray(attributeIds) && attributeIds.includes("password"));
153
142
  });
154
143
  }
155
144
  isPasswordIncorrectError() {
@@ -1 +1 @@
1
- {"version":3,"file":"AuthFlowErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAeH;;;AAGG;MACU,eAAe,CAAA;AAGxB,IAAA,WAAA,CACW,SAA0B,EACjC,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAAA;QAD9D,IAAA,CAAA,SAAS,GAAT,SAAS,CAAiB;AAGjC,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;AAED,IAAA,IAAI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;IACxC,CAAC;AAED,IAAA,IAAI,UAAU,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;IACrC,CAAC;AAED,IAAA,IAAI,gBAAgB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAC3C,CAAC;AAED,IAAA,IAAI,cAAc,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CACb,CAAC,WAAoB,KACjB,OAAO,WAAW,KAAK,QAAQ;AAC/B,oBAAA,WAAW,CAAC,WAAW,EAAE,KAAK,UAAU,CAC/C,EACH;AACN,QAAA,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,wBAAwB,GAAA;AAC5B,QAAA,QACI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,cAAc;AACvC,YAAA,IAAI,CAAC,cAAc,KAAK,4BAA4B,EACtD;IACN,CAAC;IAEO,6BAA6B,GAAA;AACjC,QAAA,MAAM,OAAO,GACT,IAAI,CAAC,SAGR,CAAC,0BAA0B,CAAC;AAE7B,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;AACzB,cAAE,OAAO,CAAC,MAAM,CACV,CAAC,MAAM,KACH,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,CACpD;cACD,EAAE,CAAC;IACb,CAAC;AAEO,IAAA,qBAAqB,CAAC,IAAY,EAAA;QACtC,MAAM,YAAY,GAAG,IAAI,CAAC,6BAA6B,EAAE,CAAC,OAAO,CAC7D,CAAC,MAAM,KACH,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC;AACtD,cAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CACtB,CAAC,WAAW,KACR,OAAO,WAAW,KAAK,QAAQ,CACtC;cACD,EAAE,CACf,CAAC;QAEF,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACtC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"AuthFlowErrorV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AA0BH;;;AAGG;MACU,eAAe,CAAA;IAGxB,WAAA,CACW,SAA0B,EACjC,QAAA,GAAqC,wBAAwB,CAAC,OAAO,EAC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AACjC,QAAA,MAAM,OAAO,GACT,IAAI,CAAC,SAGR,CAAC,0BAA0B,CAAC;AAE7B,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;AACzB,cAAE,OAAO,CAAC,MAAM,CACV,CAAC,MAAM,KACH,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,CACpD;cACD,EAAE,CAAC;IACb,CAAC;AAEO,IAAA,qBAAqB,CAAC,IAAY,EAAA;QACtC,MAAM,YAAY,GAAG,IAAI,CAAC,6BAA6B,EAAE,CAAC,OAAO,CAC7D,CAAC,MAAM,KACH,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC;AACtD,cAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CACtB,CAAC,WAAW,KACR,OAAO,WAAW,KAAK,QAAQ,CACtC;cACD,EAAE,CACf,CAAC;QAEF,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACtC,CAAC;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
4
4
  import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
@@ -11,8 +11,8 @@ import { ensureArgumentIsNotEmptyString } from '../../../utils/ArgumentValidator
11
11
  * Licensed under the MIT License.
12
12
  */
13
13
  /**
14
- * State returned when an authentication method must be registered. Applications
15
- * select one of the sanitized offered methods and provide its contact value.
14
+ * State returned when an authentication method must be registered.
15
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
16
16
  */
17
17
  class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateBase {
18
18
  constructor(stateParameters) {
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.28.0 2026-11-05 */
1
+ /*! @azure/msal-browser v5.29.1 2026-11-12 */
2
2
  'use strict';
3
3
  import { CustomAuthResultV2 } from '../CustomAuthResultV2.mjs';
4
4
  import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
@@ -11,16 +11,16 @@ import { InvalidArgumentError } from '../../../error/InvalidArgumentError.mjs';
11
11
  import { UNSUPPORTED_FLOW_TRANSITION } from '../../../network_client/custom_auth_api/v2/ErrorCodesV2.mjs';
12
12
  import { AuthenticationFactorV2 } from '../../../network_client/custom_auth_api/v2/result/BaseResultsV2.mjs';
13
13
  import { CustomAuthFlowScenarioV2 } from '../CustomAuthFlowScenarioV2.mjs';
14
+ import { ExistingAccountCodeRequiredStateV2 } from '../../../../sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs';
15
+ import { ExistingAccountPasswordRequiredStateV2 } from '../../../../sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs';
14
16
 
15
17
  /*
16
18
  * Copyright (c) Microsoft Corporation. All rights reserved.
17
19
  * Licensed under the MIT License.
18
20
  */
19
21
  /**
20
- * State returned when the user must select one of several authentication
21
- * methods before a challenge can be issued. It exposes the list of offered
22
- * methods and lets the app request a challenge for the chosen one. The flow
23
- * stays on this state until a challenge is successfully requested.
22
+ * State returned when the user must select an authentication method.
23
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
24
24
  */
25
25
  class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase {
26
26
  constructor(stateParameters) {
@@ -29,13 +29,12 @@ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase
29
29
  this.methods = stateParameters.methods;
30
30
  }
31
31
  /**
32
- * Selects an authentication method and requests its challenge. The returned
33
- * state identifies the credential the application must collect.
32
+ * Selects an authentication method and requests its challenge.
34
33
  * @param method - The method to select, from {@link methods}.
35
34
  * @returns The result of selecting the method and requesting its challenge.
36
35
  */
37
36
  async selectAuthMethod(method) {
38
- const { authenticationFactor, correlationId, logger, continuationState, flowClient, signInStateTransitionHandler, } = this.stateParameters;
37
+ const { authenticationFactor, correlationId, logger, continuationState, flowClient, signInStateTransitionHandler, resetPasswordStateTransitionHandler, } = this.stateParameters;
39
38
  try {
40
39
  logger.verbose("1r2ypl", correlationId);
41
40
  const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
@@ -46,22 +45,45 @@ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase
46
45
  flowClient,
47
46
  continuationState: result.continuationState,
48
47
  cacheClient: this.stateParameters.cacheClient,
48
+ signInStateTransitionHandler,
49
49
  };
50
- if (authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
50
+ const isExistingAccountSignUp = continuationState.scenario ===
51
+ CustomAuthFlowScenarioV2.SignUp &&
52
+ continuationState.signUp?.purpose === "existingAccount";
53
+ const channel = result.type === FLOW_CODE_REQUIRED_V2
54
+ ? result.channel?.toLowerCase()
55
+ : undefined;
56
+ if (isExistingAccountSignUp &&
57
+ authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
58
+ result.type === FLOW_CODE_REQUIRED_V2 &&
59
+ channel === AuthenticationMethodTypeV2.EMAIL) {
60
+ return new CustomAuthResultV2(new ExistingAccountCodeRequiredStateV2({
61
+ ...commonStateParameters,
62
+ method: selectedMethod,
63
+ sentTo: result.sentTo,
64
+ channel: result.channel,
65
+ codeLength: result.codeLength,
66
+ }), undefined, result.continuationState.scenario);
67
+ }
68
+ if (!isExistingAccountSignUp &&
69
+ authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
51
70
  result.type === FLOW_CODE_REQUIRED_V2 &&
52
- (result.channel?.toLowerCase() ===
53
- AuthenticationMethodTypeV2.EMAIL ||
54
- result.channel?.toLowerCase() ===
55
- AuthenticationMethodTypeV2.SMS)) {
71
+ (channel === AuthenticationMethodTypeV2.EMAIL ||
72
+ channel === AuthenticationMethodTypeV2.SMS)) {
56
73
  return new CustomAuthResultV2(new CodeRequiredStateV2({
57
74
  ...commonStateParameters,
58
- signInStateTransitionHandler,
75
+ resetPasswordStateTransitionHandler,
59
76
  method: selectedMethod,
60
77
  sentTo: result.sentTo,
61
78
  channel: result.channel,
62
79
  codeLength: result.codeLength,
63
80
  }), undefined, result.continuationState.scenario);
64
81
  }
82
+ if (isExistingAccountSignUp &&
83
+ authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
84
+ result.type === FLOW_PASSWORD_REQUIRED_V2) {
85
+ return new CustomAuthResultV2(new ExistingAccountPasswordRequiredStateV2(commonStateParameters), undefined, result.continuationState.scenario);
86
+ }
65
87
  if (continuationState.scenario ===
66
88
  CustomAuthFlowScenarioV2.SignIn &&
67
89
  authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
@@ -81,12 +103,17 @@ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase
81
103
  codeLength: result.codeLength,
82
104
  }), undefined, result.continuationState.scenario);
83
105
  }
84
- const expectedChallenge = authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR
106
+ let expectedChallenge = authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR
85
107
  ? continuationState.scenario ===
86
108
  CustomAuthFlowScenarioV2.SignIn
87
109
  ? "an email or SMS code challenge or a password challenge for single-factor sign-in"
88
110
  : "an email or SMS code challenge for single-factor authentication"
89
111
  : "a code challenge for multi-factor authentication";
112
+ if (isExistingAccountSignUp &&
113
+ authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR) {
114
+ expectedChallenge =
115
+ "an email code challenge or a password challenge for existing-account sign-up";
116
+ }
90
117
  const returnedChallenge = result.type === FLOW_CODE_REQUIRED_V2
91
118
  ? result.channel
92
119
  ? `a '${result.channel}' code challenge`
@@ -1 +1 @@
1
- {"version":3,"file":"AuthMethodSelectionRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"sourcesContent":[null],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G,iBAAiB;AACpB,gBAAA,KAAK,EAAE;oBACH,GAAG,iBAAiB,CAAC,KAAK;oBAC1B,SAAS,EAAE,cAAc,CAAC,aAAa;AAC1C,iBAAA;AACJ,aAAA;AACJ,SAAA,CAAC,CAAC;AAEH,QAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IACtC,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"AuthMethodSelectionRequiredStateV2.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;AAGG;AAwBH;;;AAGG;AACG,MAAO,kCAAmC,SAAQ,+BAA6E,CAAA;AAIjI,IAAA,WAAA,CAAY,eAA6D,EAAA;QACrE,KAAK,CAAC,eAAe,CAAC,CAAC;QAJlB,IAAA,CAAA,SAAS,GAAG,6BAA6B,CAAC;AAK/C,QAAA,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC;IAC3C,CAAC;AAED;;;;AAIG;IACH,MAAM,gBAAgB,CAClB,MAA8B,EAAA;AAE9B,QAAA,MAAM,EACF,oBAAoB,EACpB,aAAa,EACb,MAAM,EACN,iBAAiB,EACjB,UAAU,EACV,4BAA4B,EAC5B,mCAAmC,GACtC,GAAG,IAAI,CAAC,eAAe,CAAC;QAEzB,IAAI;AACA,YAAA,MAAM,CAAC,OAAO,CACV;AAIJ,YAAA,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,GAC5B,MAAM,IAAI,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;AAEtD,YAAA,MAAM,qBAAqB,GAAG;gBAC1B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,MAAM;AACN,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;gBACnC,UAAU;gBACV,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,WAAW,EAAE,IA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