@azure/msal-browser 5.28.0 → 5.29.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 (501) 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 +1 -1
  224. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  225. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  226. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  227. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  228. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  229. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  230. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  231. package/dist/log-strings-mapping.json +21 -9
  232. package/dist/naa/BridgeError.mjs +1 -1
  233. package/dist/naa/BridgeProxy.mjs +1 -1
  234. package/dist/naa/BridgeStatusCode.mjs +1 -1
  235. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  236. package/dist/navigation/NavigationClient.mjs +1 -1
  237. package/dist/network/FetchClient.mjs +1 -1
  238. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  239. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  240. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  241. package/dist/packageMetadata.mjs +2 -2
  242. package/dist/popup_relay/constants.mjs +1 -1
  243. package/dist/popup_relay/index.mjs +1 -1
  244. package/dist/popup_relay/relayClient.mjs +1 -1
  245. package/dist/protocol/Authorize.mjs +1 -1
  246. package/dist/redirect_bridge/index.mjs +1 -1
  247. package/dist/request/RequestHelpers.mjs +1 -1
  248. package/dist/request/SilentRequestHelpers.mjs +1 -1
  249. package/dist/response/ResponseHandler.mjs +1 -1
  250. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  251. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  252. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  253. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  254. package/dist/utils/BrowserConstants.mjs +1 -1
  255. package/dist/utils/BrowserDetection.mjs +1 -1
  256. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  257. package/dist/utils/BrowserUtils.mjs +1 -1
  258. package/dist/utils/Helpers.mjs +1 -1
  259. package/dist/utils/IframeMonitor.mjs +1 -1
  260. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  261. package/dist/utils/PopupMonitor.mjs +1 -1
  262. package/dist/utils/PopupOriginCheck.mjs +1 -1
  263. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  264. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  265. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  266. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  267. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  268. package/dist/webBrokerBridge/index.mjs +1 -1
  269. package/lib/custom-auth-path/log-strings-mapping.json +21 -9
  270. package/lib/custom-auth-path/msal-custom-auth.cjs +1100 -765
  271. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  272. package/lib/custom-auth-path/msal-custom-auth.js +1100 -765
  273. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  274. package/lib/log-strings-mapping.json +7 -3
  275. package/lib/msal-browser.cjs +117 -107
  276. package/lib/msal-browser.cjs.map +1 -1
  277. package/lib/msal-browser.js +117 -107
  278. package/lib/msal-browser.js.map +1 -1
  279. package/lib/msal-browser.min.js +2 -2
  280. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  281. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  282. package/lib/popup-relay/msal-popup-relay.js +2 -2
  283. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  284. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  285. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  286. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  287. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  288. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  289. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  290. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  291. package/package.json +2 -2
  292. package/src/custom_auth/CustomAuthActionInputs.ts +12 -5
  293. package/src/custom_auth/CustomAuthPublicClientApplication.ts +5 -3
  294. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +5 -3
  295. package/src/custom_auth/controller/CustomAuthStandardController.ts +79 -110
  296. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +1 -2
  297. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +1 -4
  298. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +5 -4
  299. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +28 -16
  300. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +6 -0
  301. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +83 -72
  302. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +3 -3
  303. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +7 -5
  304. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +10 -6
  305. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +9 -6
  306. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +4 -6
  307. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +36 -0
  308. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +6 -8
  309. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +2 -2
  310. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +61 -12
  311. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +21 -3
  312. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +30 -24
  313. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +1 -3
  314. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +11 -2
  315. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +1 -2
  316. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +26 -7
  317. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +179 -0
  318. package/src/custom_auth/core/error/InvalidArgumentError.ts +1 -1
  319. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +12 -12
  320. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +394 -238
  321. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +2 -6
  322. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -15
  323. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +63 -26
  324. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -6
  325. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +74 -26
  326. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +48 -9
  327. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +4 -6
  328. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +0 -6
  329. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +14 -53
  330. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +0 -18
  331. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +32 -13
  332. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +8 -9
  333. package/src/custom_auth/core/telemetry/FlowApiIdHelperV2.ts +4 -5
  334. package/src/custom_auth/core/telemetry/PublicApiId.ts +1 -0
  335. package/src/custom_auth/core/utils/ArgumentValidator.ts +26 -0
  336. package/src/custom_auth/index.ts +10 -11
  337. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -7
  338. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +28 -5
  339. package/src/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.ts +30 -0
  340. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +4 -8
  341. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +4 -7
  342. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +3 -6
  343. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.ts +0 -3
  344. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +2 -3
  345. package/src/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.ts +49 -0
  346. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +8 -4
  347. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +16 -4
  348. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +26 -5
  349. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.ts +101 -0
  350. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.ts +53 -0
  351. package/src/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.ts +97 -0
  352. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.ts +0 -6
  353. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.ts +25 -48
  354. package/src/interaction_client/PlatformAuthInteractionClient.ts +53 -38
  355. package/src/packageMetadata.ts +1 -1
  356. package/types/custom_auth/CustomAuthActionInputs.d.ts +12 -5
  357. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  358. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  359. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +5 -3
  360. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  361. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +5 -3
  362. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  363. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +2 -0
  364. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  365. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +1 -2
  366. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  367. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +1 -4
  368. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  369. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +5 -4
  370. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  371. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +17 -8
  372. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  373. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +6 -0
  374. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
  375. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +23 -44
  376. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  377. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +3 -3
  378. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +7 -6
  379. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  380. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +7 -6
  381. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  382. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
  383. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  384. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +4 -6
  385. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  386. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +20 -0
  387. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -0
  388. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +6 -8
  389. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  390. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +2 -2
  391. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +3 -6
  392. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  393. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +3 -3
  394. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  395. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +6 -8
  396. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  397. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +1 -3
  398. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  399. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +9 -2
  400. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
  401. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +1 -2
  402. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  403. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +5 -6
  404. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  405. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +23 -0
  406. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -0
  407. package/types/custom_auth/core/error/InvalidArgumentError.d.ts +1 -0
  408. package/types/custom_auth/core/error/InvalidArgumentError.d.ts.map +1 -1
  409. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +8 -1
  410. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  411. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +12 -10
  412. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  413. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +1 -1
  414. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
  415. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -5
  416. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
  417. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +22 -3
  418. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  419. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
  420. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts +2 -1
  422. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -1
  424. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
  426. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -8
  427. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  428. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +18 -6
  430. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  431. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +6 -10
  432. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts +0 -4
  434. package/types/custom_auth/core/telemetry/FlowApiIdHelperV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/telemetry/PublicApiId.d.ts +1 -0
  436. package/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  437. package/types/custom_auth/core/utils/ArgumentValidator.d.ts +3 -0
  438. package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  439. package/types/custom_auth/index.d.ts +5 -5
  440. package/types/custom_auth/index.d.ts.map +1 -1
  441. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +6 -8
  442. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  443. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +7 -5
  444. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  445. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts +7 -0
  446. package/types/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.d.ts.map +1 -0
  447. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -8
  448. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  449. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +5 -6
  450. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  451. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +3 -6
  452. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  453. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts +0 -1
  454. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateParametersV2.d.ts.map +1 -1
  455. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +3 -2
  456. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -1
  457. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts +27 -0
  458. package/types/custom_auth/sign_up/auth_flow/v2/result/ExistingAccountActionResultsV2.d.ts.map +1 -0
  459. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +6 -3
  460. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  461. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +12 -3
  462. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  463. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +8 -3
  464. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  465. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts +24 -0
  466. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.d.ts.map +1 -0
  467. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts +18 -0
  468. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.d.ts.map +1 -0
  469. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts +7 -0
  470. package/types/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.d.ts.map +1 -0
  471. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts +0 -4
  472. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateParametersV2.d.ts.map +1 -1
  473. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts +5 -4
  474. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.d.ts.map +1 -1
  475. package/types/interaction_client/PlatformAuthInteractionClient.d.ts +4 -3
  476. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  477. package/types/packageMetadata.d.ts +1 -1
  478. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +0 -82
  479. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +0 -1
  480. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +0 -25
  481. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs.map +0 -1
  482. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +0 -45
  483. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +0 -1
  484. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +0 -23
  485. package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +0 -19
  486. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -22
  487. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +0 -115
  488. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.ts +0 -34
  489. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -61
  490. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +0 -14
  491. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +0 -1
  492. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +0 -13
  493. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +0 -1
  494. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -9
  495. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +0 -1
  496. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -17
  497. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +0 -1
  498. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts +0 -11
  499. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.d.ts.map +0 -1
  500. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts +0 -19
  501. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +0 -1
@@ -242,48 +242,50 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
242
242
  throw e;
243
243
  }
244
244
 
245
- // check if the tokens can be retrieved from internal cache
246
- let cachedResult: AuthenticationResult | undefined;
247
- try {
248
- cachedResult = await this.acquireTokensFromCache(
249
- this.accountId,
250
- nativeRequest
251
- );
252
- } catch (e) {
253
- if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
245
+ if (this.apiId === ApiId.acquireTokenSilent_silentFlow) {
246
+ let cachedResult: AuthenticationResult | undefined;
247
+ try {
248
+ cachedResult = await this.acquireTokensFromCache(
249
+ this.accountId,
250
+ nativeRequest,
251
+ cacheLookupPolicy
252
+ );
253
+ } catch (e) {
254
+ if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
255
+ this.logger.info(
256
+ "MSAL internal Cache does not contain tokens, return error as per cache policy",
257
+ this.correlationId
258
+ );
259
+ nativeATMeasurement.add({
260
+ isNativeBroker: false,
261
+ });
262
+ nativeATMeasurement.end({
263
+ success: false,
264
+ });
265
+ await this.resetGeneratedDpopRequestKeyBestEffort(
266
+ nativeRequest
267
+ );
268
+ throw e;
269
+ }
270
+ // continue with a native call for any and all errors
254
271
  this.logger.info(
255
- "MSAL internal Cache does not contain tokens, return error as per cache policy",
272
+ "MSAL internal Cache does not contain tokens, proceed to make a native call",
256
273
  this.correlationId
257
274
  );
275
+ }
276
+
277
+ if (cachedResult) {
278
+ // Served from the native internal cache; token did not come directly from the broker
258
279
  nativeATMeasurement.add({
259
280
  isNativeBroker: false,
260
281
  });
261
282
  nativeATMeasurement.end({
262
- success: false,
283
+ success: true,
284
+ fromCache: true,
263
285
  });
264
- await this.resetGeneratedDpopRequestKeyBestEffort(
265
- nativeRequest
266
- );
267
- throw e;
286
+ await this.resetGeneratedDpopRequestKey(nativeRequest);
287
+ return cachedResult;
268
288
  }
269
- // continue with a native call for any and all errors
270
- this.logger.info(
271
- "MSAL internal Cache does not contain tokens, proceed to make a native call",
272
- this.correlationId
273
- );
274
- }
275
-
276
- if (cachedResult) {
277
- // Served from the native internal cache; token did not come directly from the broker
278
- nativeATMeasurement.add({
279
- isNativeBroker: false,
280
- });
281
- nativeATMeasurement.end({
282
- success: true,
283
- fromCache: true,
284
- });
285
- await this.resetGeneratedDpopRequestKey(nativeRequest);
286
- return cachedResult;
287
289
  }
288
290
 
289
291
  // dispatch the request to the broker
@@ -418,15 +420,28 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
418
420
  }
419
421
 
420
422
  /**
421
- * Fetches the tokens from the cache if un-expired
423
+ * Fetches unexpired tokens when allowed by cache policy.
422
424
  * @param nativeAccountId
423
425
  * @param request
424
- * @returns authenticationResult
426
+ * @param cacheLookupPolicy
427
+ * @returns Cached result, or undefined when cache policy bypasses lookup.
425
428
  */
426
429
  protected async acquireTokensFromCache(
427
430
  nativeAccountId: string,
428
- request: PlatformAuthRequest
429
- ): Promise<AuthenticationResult> {
431
+ request: PlatformAuthRequest,
432
+ cacheLookupPolicy: CacheLookupPolicy = CacheLookupPolicy.Default
433
+ ): Promise<AuthenticationResult | undefined> {
434
+ if (
435
+ cacheLookupPolicy === CacheLookupPolicy.RefreshTokenAndNetwork ||
436
+ cacheLookupPolicy === CacheLookupPolicy.Skip
437
+ ) {
438
+ this.logger.verbose(
439
+ "Native cache lookup bypassed for cache policy",
440
+ this.correlationId
441
+ );
442
+ return undefined;
443
+ }
444
+
430
445
  if (!nativeAccountId) {
431
446
  this.logger.warning(
432
447
  "NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided",
@@ -1090,7 +1105,7 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
1090
1105
  kmsi,
1091
1106
  this.apiId
1092
1107
  );
1093
- // Remove any existing cached tokens for this account in browser storage
1108
+ // Remove cached web access and refresh tokens, preserving ID tokens.
1094
1109
  if (clearExistingTokens) {
1095
1110
  this.browserStorage.removeAccountContext(
1096
1111
  AccountEntityUtils.getAccountInfo(accountEntity),
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "5.28.0";
3
+ export const version = "5.29.0";
@@ -26,22 +26,29 @@ export type SignInWithContinuationTokenInputs = {
26
26
  scopes?: Array<string>;
27
27
  claims?: string;
28
28
  };
29
+ /**
30
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
31
+ */
29
32
  export type SignInInputsV2 = CustomAuthActionInputs & {
30
33
  username: string;
31
- password?: string;
32
- scopes?: Array<string> | null;
34
+ scopes?: Array<string>;
33
35
  claims?: string;
34
36
  };
37
+ /**
38
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
39
+ */
35
40
  export type ResetPasswordInputsV2 = CustomAuthActionInputs & {
36
41
  username: string;
37
- scopes?: Array<string> | null;
42
+ scopes?: Array<string>;
38
43
  claims?: string;
39
44
  };
45
+ /**
46
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
47
+ */
40
48
  export type SignUpInputsV2 = CustomAuthActionInputs & {
41
49
  username: string;
42
- password?: string;
43
50
  attributes?: UserAccountAttributes;
44
- scopes?: Array<string> | null;
51
+ scopes?: Array<string>;
45
52
  claims?: string;
46
53
  };
47
54
  //# sourceMappingURL=CustomAuthActionInputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthActionInputs.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthActionInputs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG;IACvD,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAA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AAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -23,7 +23,7 @@ export declare const CustomHeaderConstants: {
23
23
  };
24
24
  export declare const DefaultPackageInfo: {
25
25
  readonly SKU: "msal.browser";
26
- readonly VERSION: "5.28.0";
26
+ readonly VERSION: "5.29.0";
27
27
  readonly OS: "";
28
28
  readonly CPU: "";
29
29
  };
@@ -49,20 +49,22 @@ export declare class CustomAuthPublicClientApplication extends PublicClientAppli
49
49
  */
50
50
  resetPassword(resetPasswordInputs: ResetPasswordInputs): Promise<ResetPasswordStartResult>;
51
51
  /**
52
- * Starts native auth V2 sign-in and returns the authentication methods
53
- * offered for the first factor.
52
+ * Starts native auth V2 sign-in.
53
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
54
54
  * @param inputs - Inputs for the sign-in V2 flow.
55
55
  * @returns A promise that resolves to the sign-in start result.
56
56
  */
57
57
  signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
58
58
  /**
59
59
  * Starts native auth V2 sign-up.
60
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
60
61
  * @param inputs - Inputs for the sign-up V2 flow.
61
62
  * @returns A promise that resolves to the sign-up start result.
62
63
  */
63
64
  signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
64
65
  /**
65
- * Initiates the native auth V2 self-service password reset flow.
66
+ * Starts native auth V2 self-service password reset.
67
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
66
68
  * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
67
69
  * @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
68
70
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,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mB,CAAC;IAI9D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
1
+ {"version":3,"file":"CustomAuthPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AAGzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAO5E,qBAAa,iCACT,SAAQ,uBACR,YAAW,oCAAoC;IAE/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IAErE;;;;OAIG;WACU,MAAM,CACf,MAAM,EAAE,uBAAuB,GAChC,OAAO,CAAC,oCAAoC,CAAC;IAiBhD,OAAO;IASP;;;;OAIG;IACH,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAMnB;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzD;;;;;;OAMG;IACH,aAAa,CACT,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAIpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9D;;;;;OAKG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAoChC"}
@@ -8,20 +8,22 @@ import { SignUpStartResultV2 } from "./sign_up/auth_flow/v2/result/SignUpStartRe
8
8
  */
9
9
  export interface ICustomAuthPublicClientApplicationV2 extends ICustomAuthPublicClientApplication {
10
10
  /**
11
- * Starts native auth V2 sign-in and returns the authentication methods
12
- * offered for the first factor.
11
+ * Starts native auth V2 sign-in.
12
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
13
13
  * @param inputs - Inputs for the sign-in V2 flow.
14
14
  * @returns A promise that resolves to the sign-in start result.
15
15
  */
16
16
  signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
17
17
  /**
18
18
  * Starts native auth V2 sign-up.
19
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
19
20
  * @param inputs - Inputs for the sign-up V2 flow.
20
21
  * @returns A promise that resolves to the sign-up start result.
21
22
  */
22
23
  signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
23
24
  /**
24
- * Initiates the native auth V2 self-service password reset flow for the given username.
25
+ * Starts native auth V2 self-service password reset.
26
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
25
27
  * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
26
28
  * @returns {Promise<ResetPasswordStartResultV2>} A promise that resolves to ResetPasswordStartResultV2
27
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
1
+ {"version":3,"file":"ICustomAuthPublicClientApplicationV2.d.ts","sourceRoot":"","sources":["../../src/custom_auth/ICustomAuthPublicClientApplicationV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,oCACb,SAAQ,kCAAkC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,eAAe,CACX,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC1C"}
@@ -23,6 +23,7 @@ export declare class CustomAuthStandardController extends StandardController imp
23
23
  private readonly flowClientV2;
24
24
  private readonly signUpStateTransitionHandlerV2;
25
25
  private readonly signInStateTransitionHandlerV2;
26
+ private readonly resetPasswordStateTransitionHandlerV2;
26
27
  constructor(operatingContext: CustomAuthOperatingContext, customAuthApiClient?: ICustomAuthApiClient, customAuthApiClientV2?: CustomAuthApiClientV2);
27
28
  getCurrentAccount(accountRetrievalInputs?: AccountRetrievalInputs): GetAccountResult;
28
29
  signIn(signInInputs: SignInInputs): Promise<SignInResult>;
@@ -31,6 +32,7 @@ export declare class CustomAuthStandardController extends StandardController imp
31
32
  resetPasswordV2(inputs: ResetPasswordInputsV2): Promise<ResetPasswordStartResultV2>;
32
33
  signInV2(inputs: SignInInputsV2): Promise<SignInStartResultV2>;
33
34
  signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2>;
35
+ private ensureUsernameIsValidV2;
34
36
  private getCorrelationId;
35
37
  private ensureUserNotSignedIn;
36
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,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CAAC,QAAQ,CAAC,8BAA8B,CACN;IACzC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CACN;gBASrC,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB,EAC1C,qBAAqB,CAAC,EAAE,qBAAqB;IAmFjD,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiOzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsD9B,eAAe,CACjB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA8FhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoK9D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAyHpE,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
1
+ {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEnB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;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AE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAkHzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAsD9B,eAAe,CACjB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IA8FhC,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA+G9D,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAsIpE,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * An authentication method that can be registered for the current account.
3
- * The enrollment link is supplied by the server and is used when the app
4
- * selects this method.
3
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
5
4
  */
6
5
  export interface AuthenticationMethodRegistrationV2 {
7
6
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationMethodRegistrationV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"AuthenticationMethodRegistrationV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * An authentication method offered by the server during a native auth V2 flow.
3
- * Each method describes one way the user can prove control of their account
4
- * (for example an email one-time code), and is surfaced when the flow needs the
5
- * app to pick a method before a challenge is issued. The app passes the selected
6
- * method back to the SDK to request a challenge for it.
3
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
7
4
  */
8
5
  export interface AuthenticationMethodV2 {
9
6
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"AuthenticationMethodV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -1,8 +1,6 @@
1
1
  /**
2
- * The native auth V2 flow that a result or error originates from (sign-in,
3
- * sign-up, or password reset). It lets a shared result or error type report
4
- * which entry flow produced it; `Unknown` is used when the flow cannot be
5
- * determined.
2
+ * The native auth V2 flow that a result or error originates from.
3
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
6
4
  */
7
5
  export declare const CustomAuthFlowScenarioV2: {
8
6
  readonly SignIn: "signIn";
@@ -10,5 +8,8 @@ export declare const CustomAuthFlowScenarioV2: {
10
8
  readonly PasswordReset: "passwordReset";
11
9
  readonly Unknown: "unknown";
12
10
  };
11
+ /**
12
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
13
+ */
13
14
  export type CustomAuthFlowScenarioV2 = (typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
14
15
  //# sourceMappingURL=CustomAuthFlowScenarioV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"CustomAuthFlowScenarioV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,14 +1,16 @@
1
1
  import { AuthFlowStateBase } from "../AuthFlowState.js";
2
2
  import { FailedStateV2 } from "./state/FailedStateV2.js";
3
3
  import { AuthFlowErrorV2 } from "./error/AuthFlowErrorV2.js";
4
+ import type { AuthFlowErrorContextV2 } from "./error/AuthFlowErrorV2.js";
4
5
  import { CustomAuthFlowScenarioV2 } from "./CustomAuthFlowScenarioV2.js";
5
6
  type CreateWithErrorOptions = {
6
7
  scenario?: CustomAuthFlowScenarioV2;
7
8
  correlationId?: string;
9
+ errorContext?: AuthFlowErrorContextV2;
8
10
  };
9
11
  /**
10
- * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
11
- * to narrow the state before accessing its members.
12
+ * Result of a native auth V2 operation.
13
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
12
14
  */
13
15
  export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData = void> {
14
16
  readonly state: TState;
@@ -17,8 +19,7 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
17
19
  constructor(state: TState, data?: TData | undefined, scenario?: CustomAuthFlowScenarioV2);
18
20
  error?: AuthFlowErrorV2;
19
21
  /**
20
- * Narrows the result to a specific state by its `stateType` discriminator.
21
- * A successful match makes the state's properties available without a cast.
22
+ * Checks whether the result matches a state type and narrows its state.
22
23
  * @param stateType - The state type to test for.
23
24
  * @returns True (and narrows `state`) when the current state matches `stateType`.
24
25
  */
@@ -28,8 +29,7 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
28
29
  }>;
29
30
  };
30
31
  /**
31
- * Checks whether the result is in the terminal failed state. A failed result
32
- * contains the unified V2 flow error.
32
+ * Checks whether the operation failed.
33
33
  * @returns True (and narrows `state`) when the operation failed.
34
34
  */
35
35
  isFailed(): this is this & {
@@ -38,8 +38,17 @@ export declare class CustomAuthResultV2<TState extends AuthFlowStateBase, TData
38
38
  }>;
39
39
  };
40
40
  /**
41
- * Creates a failed result from the supplied error. The result uses the
42
- * 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(): this is this & {
45
+ state: Extract<TState, {
46
+ stateType: "passwordRequired";
47
+ }>;
48
+ };
49
+ /**
50
+ * Creates a failed result from the supplied error.
51
+ * Optional error context identifies MFA verification or authentication-method registration.
43
52
  * @param error - The error that occurred.
44
53
  * @param options - The flow-error context.
45
54
  * @returns A failed result carrying the unified V2 flow error.
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthResultV2.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EA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EAAE;YAAE,SAAS,EAAE,kBAAkB,CAAA;SAAE,CAAC,CAAC;KAC7D;IAID;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,SAAS,iBAAiB,EAAE,KAAK,GAAG,IAAI,EACjE,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,sBAAsB,GAChC,kBAAkB,CAAC,MAAM,GAAG,aAAa,EAAE,KAAK,CAAC;IAqBpD,OAAO,CAAC,MAAM,CAAC,eAAe;CAiCjC"}
@@ -1,5 +1,11 @@
1
+ export declare const ATTRIBUTE_VALIDATION_ERROR = "attributeValidationError";
1
2
  export declare const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
2
3
  export declare const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
4
+ export declare const PASSWORD_BANNED = "passwordBanned";
5
+ export declare const PASSWORD_IS_INVALID = "passwordIsInvalid";
6
+ export declare const PASSWORD_RECENTLY_USED = "passwordRecentlyUsed";
7
+ export declare const PASSWORD_TOO_LONG = "passwordTooLong";
8
+ export declare const PASSWORD_TOO_SHORT = "passwordTooShort";
3
9
  export declare const PASSWORD_TOO_WEAK = "passwordTooWeak";
4
10
  export declare const USER_NOT_FOUND = "userNotFound";
5
11
  //# sourceMappingURL=AuthFlowErrorSubcodesV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthFlowErrorSubcodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AACxE,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"AuthFlowErrorSubcodesV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AACrE,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAC1D,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AACxE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAC7D,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
@@ -1,88 +1,67 @@
1
1
  import type { CustomAuthError } from "../../../error/CustomAuthError.js";
2
2
  import { CustomAuthFlowScenarioV2 } from "../CustomAuthFlowScenarioV2.js";
3
+ export type AuthFlowErrorContextV2 = "default" | "mfaVerification" | "authMethodRegistration";
3
4
  /**
4
- * Error returned by a native authentication V2 operation. Use its classifiers
5
- * to handle known failures while retaining raw diagnostics through `errorData`.
5
+ * Error returned by a native authentication V2 operation.
6
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
6
7
  */
7
8
  export declare class AuthFlowErrorV2 {
8
9
  errorData: CustomAuthError;
10
+ private readonly errorContext;
9
11
  readonly scenario: CustomAuthFlowScenarioV2;
10
- constructor(errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2);
12
+ constructor(errorData: CustomAuthError, scenario?: CustomAuthFlowScenarioV2, errorContext?: AuthFlowErrorContextV2);
11
13
  get correlationId(): string | undefined;
12
14
  get errorCodes(): number[] | undefined;
13
15
  get errorDescription(): string | undefined;
14
16
  get innerErrorCode(): string | undefined;
15
- /**
16
- * Gets the attribute ids that the service reports as required.
17
- */
18
17
  get requiredAttributes(): readonly string[];
19
- /**
20
- * Gets the attribute ids whose submitted values failed validation.
21
- */
22
18
  get invalidAttributes(): readonly string[];
23
19
  /**
24
- * Checks if the error requires the flow to continue in the browser. The
25
- * server surfaces this as the `web_redirect_required` OAuth suberror, so a
26
- * browser hand-off arrives as a `FailedStateV2` on which this detector
27
- * returns true.
20
+ * Checks whether the flow must continue in the browser.
28
21
  * @returns True if the browser is required, false otherwise.
29
22
  */
30
23
  isBrowserRequired(): boolean;
31
24
  /**
32
- * Checks if the error is due to a caller-supplied argument failing
33
- * client-side validation before the request was issued (for example an empty
34
- * username, code, or password, or an unknown method id). Use it to prompt the
35
- * user to correct the input rather than treating it as a server failure.
25
+ * Checks whether a caller-supplied argument failed client-side validation.
36
26
  * @returns True if the input was invalid, false otherwise.
37
27
  */
38
28
  isInvalidInput(): boolean;
39
29
  /**
40
- * Checks whether the service rejected the username parameter. Use it to ask
41
- * the user to correct the supplied username.
42
- * @returns True when the username is invalid, otherwise false.
30
+ * Checks whether the supplied username failed local validation.
31
+ * @returns True when local username validation failed.
43
32
  */
44
33
  isInvalidUsername(): boolean;
45
34
  /**
46
- * Checks whether the supplied username does not identify an account. Use it
47
- * to distinguish a missing account from other request failures.
35
+ * Checks whether the supplied username does not identify an account.
48
36
  * @returns True when the service reports that the user was not found.
49
37
  */
50
38
  isUserNotFound(): boolean;
51
39
  /**
52
- * Checks whether the service rejected the supplied sign-in credentials. This
53
- * classifier does not identify new-password policy failures.
54
- * @returns True when the username or password is incorrect.
55
- */
56
- isInvalidCredentials(): boolean;
57
- /**
58
- * Checks whether the service rejected a one-time code. Use it to prompt the
59
- * user to re-enter the code or request a new one.
40
+ * Checks whether the service rejected a one-time code.
60
41
  * @returns True when the one-time code is invalid, otherwise false.
61
42
  */
62
43
  isInvalidCode(): boolean;
63
44
  /**
64
- * Checks whether a new password violates password policy. It recognizes
65
- * both weak-password responses and password-targeted validation details.
66
- * @returns True when the new password is invalid, otherwise false.
45
+ * Checks whether the service rejected an MFA or registration challenge.
46
+ * @returns True when the verification challenge is invalid.
67
47
  */
68
- isInvalidPassword(): boolean;
48
+ isInvalidChallenge(): boolean;
69
49
  /**
70
- * Checks whether an account already exists for the supplied identifier.
71
- * This can occur at different stages while completing sign-up.
72
- * @returns True if the account already exists, otherwise false.
50
+ * Checks whether the service rejected non-password attributes.
51
+ * Password-targeted validation is reported only by isInvalidPassword().
52
+ * @returns True when at least one non-password attribute is invalid.
73
53
  */
74
- isUserAlreadyExists(): boolean;
54
+ isInvalidAttributes(): boolean;
75
55
  /**
76
- * Checks whether the service requires attributes omitted from the request.
77
- * Use it to collect the required attributes before resubmitting.
78
- * @returns True when required attributes are missing, otherwise false.
56
+ * Checks whether the service rejected a supplied password.
57
+ * @returns True when the supplied password is invalid, otherwise false.
79
58
  */
80
- isMissingRequiredAttributes(): boolean;
59
+ isInvalidPassword(): boolean;
60
+ private isAttributeValidationError;
81
61
  private isUserNotFoundError;
82
- private isUserInvalidError;
83
62
  private isInvalidCodeError;
84
63
  private isInvalidPasswordError;
85
- private isPasswordPolicyViolationError;
64
+ private isPasswordAttributeValidationError;
86
65
  private isPasswordIncorrectError;
87
66
  private getAttributeValidationDetails;
88
67
  private getAttributeIdsByCode;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthFlowErrorV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAUzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG1E;;;GAGG;AACH,qBAAa,eAAe;IAIb,SAAS,EAAE,eAAe;IAHrC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;gBAGjC,SAAS,EAAE,eAAe,EACjC,QAAQ,GAAE,wBAA2D;IAKzE,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,GAAG,SAAS,CAErC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,IAAI,cAAc,IAAI,MA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AAQ,GAAE,wBAA2D,EACpD,YAAY,GAAE,sBAAkC;IAKrE,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,GAAG,SAAS,CAErC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAIvC;IAED,IAAI,kBAAkB,IAAI,SAAS,MAAM,EAAE,CAE1C;IAED,IAAI,iBAAiB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAO5B;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAO5B;;;OAGG;IACH,cAAc,IAAI,OAAO;IAIzB;;;OAGG;IACH,aAAa,IAAI,OAAO;IAIxB;;;OAGG;IACH,kBAAkB,IAAI,OAAO;IAQ7B;;;;OAIG;IACH,mBAAmB,IAAI,OAAO;IAoB9B;;;OAGG;IACH,iBAAiB,IAAI,OAAO;IAQ5B,OAAO,CAAC,0BAA0B;IAOlC,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,sBAAsB;IAc9B,OAAO,CAAC,kCAAkC;IAc1C,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,6BAA6B;IAerC,OAAO,CAAC,qBAAqB;CAahC"}
@@ -2,13 +2,13 @@ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
2
  import type { FailedStateV2 } from "../state/FailedStateV2.js";
3
3
  import type { AuthMethodVerificationRequiredStateV2 } from "../state/AuthMethodVerificationRequiredStateV2.js";
4
4
  /**
5
- * The states a registration challenge action can resolve to. Successful
6
- * registration requires verification before the flow can complete.
5
+ * States returned after requesting an authentication-method registration challenge.
6
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
7
7
  */
8
8
  export type AuthMethodRegistrationChallengeResultStateV2 = AuthMethodVerificationRequiredStateV2 | FailedStateV2;
9
9
  /**
10
10
  * Result of challenging a selected authentication method for registration.
11
- * It wraps the verification-required or failed state.
11
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
12
12
  */
13
13
  export type AuthMethodRegistrationChallengeResultV2 = CustomAuthResultV2<AuthMethodRegistrationChallengeResultStateV2>;
14
14
  //# sourceMappingURL=AuthMethodRegistrationChallengeResultV2.d.ts.map
@@ -2,14 +2,15 @@ import { CustomAuthResultV2 } from "../CustomAuthResultV2.js";
2
2
  import type { CompletedStateV2 } from "../state/CompletedStateV2.js";
3
3
  import type { FailedStateV2 } from "../state/FailedStateV2.js";
4
4
  import type { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
5
+ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/state/SignInContinuationStateV2.js";
5
6
  /**
6
- * The states an authentication-method verification submission can resolve to.
7
- * A successful submission completes the authentication flow.
7
+ * States returned after submitting an authentication-method verification challenge.
8
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8
9
  */
9
- export type AuthMethodVerificationSubmitChallengeResultStateV2 = CompletedStateV2 | FailedStateV2;
10
+ export type AuthMethodVerificationSubmitChallengeResultStateV2 = SignInContinuationStateV2 | CompletedStateV2 | FailedStateV2;
10
11
  /**
11
- * Result of submitting the authentication-method verification challenge. It
12
- * includes account data when verification and token completion succeed.
12
+ * Result of submitting an authentication-method verification challenge.
13
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
13
14
  */
14
- export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<AuthMethodVerificationSubmitChallengeResultStateV2, CustomAuthAccountData>;
15
+ export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<AuthMethodVerificationSubmitChallengeResultStateV2, CustomAuthAccountData | undefined>;
15
16
  //# sourceMappingURL=AuthMethodVerificationSubmitChallengeResultV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthMethodVerificationSubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,kDAAkD,GACxD,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,6CAA6C,GAAG,kBAAkB,CAC1E,kDAAkD,EAClD,qBAAqB,CACxB,CAAC"}
1
+ {"version":3,"file":"AuthMethodVerificationSubmitChallengeResultV2.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAErH;;;GAGG;AACH,MAAM,MAAM,kDAAkD,GACxD,yBAAyB,GACzB,gBAAgB,GAChB,aAAa,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,6CAA6C,GAAG,kBAAkB,CAC1E,kDAAkD,EAClD,qBAAqB,GAAG,SAAS,CACpC,CAAC"}