@azure/msal-browser 5.30.0 → 5.31.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 (516) hide show
  1. package/README.md +4 -2
  2. package/dist/app/IPublicClientApplication.mjs +4 -1
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.mjs +14 -2
  5. package/dist/app/PublicClientApplication.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
  8. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
  11. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  13. package/dist/cache/AccountManager.mjs +1 -1
  14. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  15. package/dist/cache/BrowserCacheManager.mjs +39 -2
  16. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  17. package/dist/cache/CacheHelpers.mjs +1 -1
  18. package/dist/cache/CacheKeys.mjs +1 -1
  19. package/dist/cache/CookieStorage.mjs +1 -1
  20. package/dist/cache/DatabaseStorage.mjs +1 -1
  21. package/dist/cache/EncryptedData.mjs +1 -1
  22. package/dist/cache/LocalStorage.mjs +1 -1
  23. package/dist/cache/MemoryStorage.mjs +1 -1
  24. package/dist/cache/SessionStorage.mjs +1 -1
  25. package/dist/cache/TokenCache.mjs +1 -1
  26. package/dist/config/Configuration.mjs +1 -1
  27. package/dist/controllers/NestedAppAuthController.mjs +26 -5
  28. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  29. package/dist/controllers/StandardController.mjs +44 -11
  30. package/dist/controllers/StandardController.mjs.map +1 -1
  31. package/dist/crypto/BrowserCrypto.mjs +5 -3
  32. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  33. package/dist/crypto/CryptoOps.mjs +1 -1
  34. package/dist/crypto/PkceGenerator.mjs +1 -1
  35. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  36. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  37. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  38. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -4
  39. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  40. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
  41. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  42. package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
  43. package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
  44. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -4
  50. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
  51. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
  52. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
  53. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -8
  56. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
  57. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -3
  59. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
  60. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
  61. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
  62. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  63. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -7
  65. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
  67. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
  69. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  71. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
  72. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  73. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
  74. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
  75. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
  76. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  77. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
  78. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  79. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  80. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
  81. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  82. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
  83. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  84. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
  85. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  86. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
  87. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  88. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
  89. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
  90. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  91. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  92. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  93. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  94. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  95. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  96. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  97. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  98. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  99. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  100. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  101. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  102. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  103. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  104. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  105. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  110. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  111. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  112. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +32 -27
  113. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  115. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
  116. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  140. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  142. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  143. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  144. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  145. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  146. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  147. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  148. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  149. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  155. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -1
  156. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  157. package/dist/custom_auth/index.mjs +1 -1
  158. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  159. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  161. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -2
  170. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
  172. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  173. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  176. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -3
  177. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  178. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -2
  189. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  190. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
  191. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  192. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  193. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  194. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  196. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  197. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  198. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  199. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  200. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -2
  206. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  211. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  212. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  213. package/dist/encode/Base64Decode.mjs +1 -1
  214. package/dist/encode/Base64Encode.mjs +1 -1
  215. package/dist/error/BrowserAuthError.mjs +1 -1
  216. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  217. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  218. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  219. package/dist/error/NativeAuthError.mjs +1 -1
  220. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  221. package/dist/error/NestedAppAuthError.mjs +1 -1
  222. package/dist/event/EventHandler.mjs +1 -1
  223. package/dist/event/EventMessage.mjs +1 -1
  224. package/dist/event/EventType.mjs +1 -1
  225. package/dist/index.mjs +1 -1
  226. package/dist/interaction_client/BaseInteractionClient.mjs +4 -2
  227. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  228. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  229. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
  230. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  231. package/dist/interaction_client/PopupClient.mjs +1 -1
  232. package/dist/interaction_client/RedirectClient.mjs +1 -1
  233. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  234. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  235. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  236. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  237. package/dist/interaction_client/StandardInteractionClient.mjs +2 -1
  238. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  239. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  240. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  241. package/dist/log-strings-mapping.json +695 -695
  242. package/dist/naa/BridgeError.mjs +1 -1
  243. package/dist/naa/BridgeProxy.mjs +1 -1
  244. package/dist/naa/BridgeStatusCode.mjs +1 -1
  245. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  246. package/dist/navigation/NavigationClient.mjs +1 -1
  247. package/dist/network/FetchClient.mjs +1 -1
  248. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  249. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  250. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  251. package/dist/packageMetadata.mjs +2 -2
  252. package/dist/popup_relay/constants.mjs +1 -1
  253. package/dist/popup_relay/index.mjs +1 -1
  254. package/dist/popup_relay/relayClient.mjs +1 -1
  255. package/dist/protocol/Authorize.mjs +2 -1
  256. package/dist/protocol/Authorize.mjs.map +1 -1
  257. package/dist/redirect_bridge/index.mjs +1 -1
  258. package/dist/request/RequestHelpers.mjs +2 -1
  259. package/dist/request/RequestHelpers.mjs.map +1 -1
  260. package/dist/request/SilentRequestHelpers.mjs +6 -4
  261. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  262. package/dist/response/ResponseHandler.mjs +1 -1
  263. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  264. package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -2
  265. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  266. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  267. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  268. package/dist/utils/BrowserConstants.mjs +1 -1
  269. package/dist/utils/BrowserDetection.mjs +1 -1
  270. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  271. package/dist/utils/BrowserUtils.mjs +1 -1
  272. package/dist/utils/Helpers.mjs +1 -1
  273. package/dist/utils/IframeMonitor.mjs +1 -1
  274. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  275. package/dist/utils/PopupMonitor.mjs +1 -1
  276. package/dist/utils/PopupOriginCheck.mjs +1 -1
  277. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  278. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  279. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  280. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  281. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  282. package/dist/webBrokerBridge/index.mjs +1 -1
  283. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  284. package/lib/custom-auth-path/msal-custom-auth.cjs +386 -252
  285. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  286. package/lib/custom-auth-path/msal-custom-auth.js +386 -252
  287. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  288. package/lib/log-strings-mapping.json +2 -2
  289. package/lib/msal-browser.cjs +411 -153
  290. package/lib/msal-browser.cjs.map +1 -1
  291. package/lib/msal-browser.js +411 -153
  292. package/lib/msal-browser.js.map +1 -1
  293. package/lib/msal-browser.min.js +2 -2
  294. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  295. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  296. package/lib/popup-relay/msal-popup-relay.js +2 -2
  297. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  298. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  299. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  300. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  301. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  302. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  303. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  304. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  305. package/package.json +2 -2
  306. package/src/app/IPublicClientApplication.ts +16 -0
  307. package/src/app/PublicClientApplication.ts +22 -0
  308. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
  309. package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
  310. package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
  311. package/src/cache/BrowserCacheManager.ts +65 -1
  312. package/src/controllers/NestedAppAuthController.ts +35 -2
  313. package/src/controllers/StandardController.ts +76 -12
  314. package/src/controllers/UnknownOperatingContextController.ts +10 -0
  315. package/src/crypto/BrowserCrypto.ts +4 -2
  316. package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
  317. package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
  318. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
  319. package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
  320. package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
  321. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
  322. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
  323. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
  324. package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
  325. package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
  326. package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
  327. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
  328. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
  329. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
  330. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
  331. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
  332. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
  333. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
  334. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
  335. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
  336. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
  337. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
  338. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
  339. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
  340. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
  341. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
  342. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
  343. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
  344. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
  345. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
  346. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
  347. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
  348. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
  349. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
  350. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
  351. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
  352. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
  353. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
  354. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
  355. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
  356. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
  357. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
  358. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
  359. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
  360. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
  361. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
  362. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
  363. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
  364. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
  365. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
  366. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
  367. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
  368. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
  369. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
  370. package/src/interaction_client/BaseInteractionClient.ts +6 -1
  371. package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
  372. package/src/interaction_client/StandardInteractionClient.ts +1 -0
  373. package/src/packageMetadata.ts +1 -1
  374. package/src/protocol/Authorize.ts +5 -0
  375. package/src/request/EndSessionPopupRequest.ts +3 -0
  376. package/src/request/RedirectRequest.ts +3 -0
  377. package/src/request/RequestHelpers.ts +5 -0
  378. package/src/request/SilentRequestHelpers.ts +9 -4
  379. package/src/telemetry/BrowserPerformanceEvents.ts +7 -0
  380. package/types/app/IPublicClientApplication.d.ts +8 -0
  381. package/types/app/IPublicClientApplication.d.ts.map +1 -1
  382. package/types/app/PublicClientApplication.d.ts +6 -1
  383. package/types/app/PublicClientApplication.d.ts.map +1 -1
  384. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
  385. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  386. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  387. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
  388. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  389. package/types/cache/BrowserCacheManager.d.ts +20 -2
  390. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  391. package/types/controllers/NestedAppAuthController.d.ts +5 -0
  392. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  393. package/types/controllers/StandardController.d.ts +4 -0
  394. package/types/controllers/StandardController.d.ts.map +1 -1
  395. package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
  396. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  397. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  398. package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
  399. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  400. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  401. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
  402. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  403. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
  404. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  405. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  406. package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
  407. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
  408. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
  409. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
  410. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
  411. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
  412. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
  413. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
  414. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
  415. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
  416. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
  417. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
  418. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
  419. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
  420. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
  422. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
  424. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
  426. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  427. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
  428. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
  430. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
  431. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
  432. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
  434. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
  436. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  437. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
  438. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  439. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
  440. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
  441. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
  442. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  443. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
  444. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
  445. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
  446. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  447. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
  448. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  449. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
  450. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  451. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
  452. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  453. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
  454. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  455. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
  456. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  457. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
  458. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
  459. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
  460. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  461. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
  462. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  463. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
  464. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
  466. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
  467. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  468. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
  469. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
  470. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  471. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
  472. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  473. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
  474. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  475. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
  476. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  477. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
  478. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  479. package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  480. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
  481. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  482. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
  483. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  484. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
  485. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  486. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
  487. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  488. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
  489. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  490. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
  491. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  492. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
  493. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  494. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
  495. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  496. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
  497. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  498. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
  499. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  500. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
  501. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  502. package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
  503. package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  504. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  505. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  506. package/types/packageMetadata.d.ts +1 -1
  507. package/types/protocol/Authorize.d.ts.map +1 -1
  508. package/types/request/EndSessionPopupRequest.d.ts +3 -0
  509. package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  510. package/types/request/RedirectRequest.d.ts +3 -0
  511. package/types/request/RedirectRequest.d.ts.map +1 -1
  512. package/types/request/RequestHelpers.d.ts.map +1 -1
  513. package/types/request/SilentRequestHelpers.d.ts +1 -1
  514. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  515. package/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
  516. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -5,7 +5,6 @@
5
5
 
6
6
  /**
7
7
  * An authentication method that can be registered for the current account.
8
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
9
8
  */
10
9
  export interface AuthenticationMethodRegistrationV2 {
11
10
  type: string;
@@ -5,7 +5,6 @@
5
5
 
6
6
  /**
7
7
  * An authentication method offered by the server during a native auth V2 flow.
8
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
9
8
  */
10
9
  export interface AuthenticationMethodV2 {
11
10
  id: string;
@@ -5,7 +5,6 @@
5
5
 
6
6
  /**
7
7
  * The native auth V2 flow that a result or error originates from.
8
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
9
8
  */
10
9
  export const CustomAuthFlowScenarioV2 = {
11
10
  SignIn: "signIn",
@@ -14,8 +13,5 @@ export const CustomAuthFlowScenarioV2 = {
14
13
  Unknown: "unknown",
15
14
  } as const;
16
15
 
17
- /**
18
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
19
- */
20
16
  export type CustomAuthFlowScenarioV2 =
21
17
  (typeof CustomAuthFlowScenarioV2)[keyof typeof CustomAuthFlowScenarioV2];
@@ -21,7 +21,6 @@ type CreateWithErrorOptions = {
21
21
 
22
22
  /**
23
23
  * Result of a native auth V2 operation.
24
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
25
24
  */
26
25
  export class CustomAuthResultV2<
27
26
  TState extends AuthFlowStateBase,
@@ -29,7 +29,6 @@ export type AuthFlowErrorContextV2 =
29
29
 
30
30
  /**
31
31
  * Error returned by a native authentication V2 operation.
32
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
33
32
  */
34
33
  export class AuthFlowErrorV2 {
35
34
  readonly scenario: CustomAuthFlowScenarioV2;
@@ -9,7 +9,6 @@ import type { AuthMethodVerificationRequiredStateV2 } from "../state/AuthMethodV
9
9
 
10
10
  /**
11
11
  * States returned after requesting an authentication-method registration challenge.
12
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
13
12
  */
14
13
  export type AuthMethodRegistrationChallengeResultStateV2 =
15
14
  | AuthMethodVerificationRequiredStateV2
@@ -17,7 +16,6 @@ export type AuthMethodRegistrationChallengeResultStateV2 =
17
16
 
18
17
  /**
19
18
  * Result of challenging a selected authentication method for registration.
20
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
21
19
  */
22
20
  export type AuthMethodRegistrationChallengeResultV2 =
23
21
  CustomAuthResultV2<AuthMethodRegistrationChallengeResultStateV2>;
@@ -11,7 +11,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
11
11
 
12
12
  /**
13
13
  * States returned after submitting an authentication-method verification challenge.
14
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15
14
  */
16
15
  export type AuthMethodVerificationSubmitChallengeResultStateV2 =
17
16
  | SignInContinuationStateV2
@@ -20,7 +19,6 @@ export type AuthMethodVerificationSubmitChallengeResultStateV2 =
20
19
 
21
20
  /**
22
21
  * Result of submitting an authentication-method verification challenge.
23
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
24
22
  */
25
23
  export type AuthMethodVerificationSubmitChallengeResultV2 = CustomAuthResultV2<
26
24
  AuthMethodVerificationSubmitChallengeResultStateV2,
@@ -11,7 +11,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
11
11
 
12
12
  /**
13
13
  * States returned after submitting an MFA challenge.
14
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
15
14
  */
16
15
  export type MFASubmitChallengeResultStateV2 =
17
16
  | SignInContinuationStateV2
@@ -20,7 +19,6 @@ export type MFASubmitChallengeResultStateV2 =
20
19
 
21
20
  /**
22
21
  * Result of submitting an MFA challenge.
23
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
24
22
  */
25
23
  export type MFASubmitChallengeResultV2 = CustomAuthResultV2<
26
24
  MFASubmitChallengeResultStateV2,
@@ -13,7 +13,6 @@ import type { ExistingAccountPasswordRequiredStateV2 } from "../../../../sign_up
13
13
 
14
14
  /**
15
15
  * States returned after requesting an authentication challenge.
16
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
17
16
  */
18
17
  export type RequestChallengeResultStateV2 =
19
18
  | CodeRequiredStateV2
@@ -25,7 +24,6 @@ export type RequestChallengeResultStateV2 =
25
24
 
26
25
  /**
27
26
  * Result of requesting an authentication challenge.
28
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
29
27
  */
30
28
  export type RequestChallengeResultV2 =
31
29
  CustomAuthResultV2<RequestChallengeResultStateV2>;
@@ -10,7 +10,6 @@ import type { FailedStateV2 } from "../state/FailedStateV2.js";
10
10
 
11
11
  /**
12
12
  * States returned when native auth V2 password reset starts.
13
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
14
13
  */
15
14
  export type ResetPasswordStartResultStateV2 =
16
15
  | AuthMethodSelectionRequiredStateV2
@@ -19,7 +18,6 @@ export type ResetPasswordStartResultStateV2 =
19
18
 
20
19
  /**
21
20
  * Result of starting native auth V2 password reset.
22
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
23
21
  */
24
22
  export type ResetPasswordStartResultV2 =
25
23
  CustomAuthResultV2<ResetPasswordStartResultStateV2>;
@@ -15,7 +15,6 @@ import type { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2
15
15
 
16
16
  /**
17
17
  * States returned after submitting a sign-in or sign-up password.
18
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
19
18
  */
20
19
  export type SubmitPasswordResultStateV2 =
21
20
  | CompletedStateV2
@@ -28,7 +27,6 @@ export type SubmitPasswordResultStateV2 =
28
27
 
29
28
  /**
30
29
  * Result of submitting a password in the active flow.
31
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
32
30
  */
33
31
  export type SubmitPasswordResultV2 = CustomAuthResultV2<
34
32
  SubmitPasswordResultStateV2,
@@ -16,7 +16,6 @@ import type { AuthMethodRegistrationRequiredStateV2 } from "../state/AuthMethodR
16
16
 
17
17
  /**
18
18
  * States returned after verifying an authentication challenge.
19
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
20
19
  */
21
20
  export type VerifyChallengeResultStateV2 =
22
21
  | NewPasswordRequiredStateV2
@@ -30,7 +29,6 @@ export type VerifyChallengeResultStateV2 =
30
29
 
31
30
  /**
32
31
  * Result of verifying an authentication challenge.
33
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
34
32
  */
35
33
  export type VerifyChallengeResultV2 = CustomAuthResultV2<
36
34
  VerifyChallengeResultStateV2,
@@ -14,7 +14,6 @@ import { ensureArgumentIsNotEmptyString } from "../../../utils/ArgumentValidator
14
14
 
15
15
  /**
16
16
  * State returned when an authentication method must be registered.
17
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
18
17
  */
19
18
  export class AuthMethodRegistrationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodRegistrationRequiredStateParametersV2> {
20
19
  readonly stateType = "authMethodRegistrationRequired";
@@ -27,7 +27,6 @@ import { ExistingAccountPasswordRequiredStateV2 } from "../../../../sign_up/auth
27
27
 
28
28
  /**
29
29
  * State returned when the user must select an authentication method.
30
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
31
30
  */
32
31
  export class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodSelectionRequiredStateParametersV2> {
33
32
  readonly stateType = "authMethodSelectionRequired";
@@ -75,8 +74,6 @@ export class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredSt
75
74
  signInStateTransitionHandler,
76
75
  };
77
76
  const isExistingAccountSignUp =
78
- continuationState.scenario ===
79
- CustomAuthFlowScenarioV2.SignUp &&
80
77
  continuationState.signUp?.purpose === "existingAccount";
81
78
 
82
79
  const channel =
@@ -17,7 +17,6 @@ import { SignInContinuationStateV2 } from "../../../../sign_in/auth_flow/v2/stat
17
17
  /**
18
18
  * State returned when a newly registered authentication method must be
19
19
  * activated with the challenge sent by the service.
20
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
21
20
  */
22
21
  export class AuthMethodVerificationRequiredStateV2 extends AuthFlowActionRequiredStateBase<AuthMethodVerificationRequiredStateParametersV2> {
23
22
  readonly stateType = "authMethodVerificationRequired";
@@ -26,7 +26,6 @@ import { AuthMethodRegistrationRequiredStateV2 } from "./AuthMethodRegistrationR
26
26
 
27
27
  /**
28
28
  * State returned when first-factor authentication requires a one-time code.
29
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
30
29
  */
31
30
  export class CodeRequiredStateV2 extends ChallengeVerificationStateBaseV2<CodeRequiredStateParametersV2> {
32
31
  readonly stateType = "codeRequired";
@@ -7,7 +7,6 @@ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
7
 
8
8
  /**
9
9
  * Terminal state indicating the operation completed successfully.
10
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
11
10
  */
12
11
  export class CompletedStateV2 extends AuthFlowStateBase {
13
12
  readonly stateType = "completed";
@@ -7,7 +7,6 @@ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
7
 
8
8
  /**
9
9
  * Terminal state indicating the operation failed.
10
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
11
10
  */
12
11
  export class FailedStateV2 extends AuthFlowStateBase {
13
12
  readonly stateType = "failed";
@@ -22,7 +22,6 @@ import { AuthenticationFactorV2 } from "../../../network_client/custom_auth_api/
22
22
  /**
23
23
  * State returned when authentication requires verification of an email or SMS MFA
24
24
  * challenge. It allows the app to submit the challenge or request a replacement.
25
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
26
25
  */
27
26
  export class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2<MFAVerificationRequiredStateParametersV2> {
28
27
  readonly stateType = "mfaVerificationRequired";
@@ -26,7 +26,6 @@ import type { SubmitAttributesResultV2 } from "../../../../sign_up/auth_flow/v2/
26
26
 
27
27
  /**
28
28
  * State returned when sign-in or sign-up requires a password.
29
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
30
29
  */
31
30
  export class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<PasswordRequiredStateParametersV2> {
32
31
  readonly stateType = "passwordRequired";
@@ -97,11 +96,14 @@ export class PasswordRequiredStateV2 extends AuthFlowActionRequiredStateBase<Pas
97
96
  );
98
97
  }
99
98
 
100
- const result = await flowClient.submitSignUpAttributes({
101
- correlationId,
102
- continuationState,
103
- attributes: { password },
104
- });
99
+ const result = await flowClient.submitSignUpAttributes(
100
+ {
101
+ correlationId,
102
+ continuationState,
103
+ attributes: { password },
104
+ },
105
+ "submitPassword"
106
+ );
105
107
  return signUpStateTransitionHandler.handleAttributeSubmission(
106
108
  result,
107
109
  { ...this.stateParameters, signUpStateTransitionHandler },
@@ -7,6 +7,7 @@ import { CustomAuthFlowScenarioV2 } from "../../auth_flow/v2/CustomAuthFlowScena
7
7
  import type { UserAccountAttributes } from "../../../UserAccountAttributes.js";
8
8
 
9
9
  export interface FlowLinksV2 {
10
+ continue?: string;
10
11
  challenge?: string;
11
12
  verify?: string;
12
13
  activate?: string;
@@ -28,6 +28,7 @@ import {
28
28
  createFlowCodeRequiredResultV2,
29
29
  createFlowExistingAccountCodeRequiredResultV2,
30
30
  createFlowExistingAccountPasswordRequiredResultV2,
31
+ createFlowExistingAccountStartResultV2,
31
32
  createFlowPasswordRequiredResultV2,
32
33
  createFlowSignUpPasswordRequiredResultV2,
33
34
  createFlowMFARequiredResultV2,
@@ -43,6 +44,8 @@ import {
43
44
  import type {
44
45
  FlowCodeRequiredResultV2,
45
46
  FlowExistingAccountChallengeResultV2,
47
+ FlowExistingAccountStartResultV2,
48
+ FlowMethodSelectionRequiredResultV2,
46
49
  FlowCompletedResultV2,
47
50
  FlowSignInContinuationRequiredResultV2,
48
51
  FlowSignInStartResultV2,
@@ -306,22 +309,36 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
306
309
  });
307
310
  }
308
311
 
309
- const continuationState: FlowContinuationStateV2 = {
310
- continuationToken: startResult.continuationToken,
311
- scenario: CustomAuthFlowScenarioV2.SignUp,
312
- scopes,
313
- links: {},
314
- signUp: {
315
- purpose: "existingAccount",
312
+ return createFlowExistingAccountStartResultV2({
313
+ correlationId,
314
+ continuationState: {
315
+ continuationToken: startResult.continuationToken,
316
+ scenario: CustomAuthFlowScenarioV2.SignIn,
317
+ scopes,
318
+ links: {},
319
+ signUp: {
320
+ purpose: "existingAccount",
321
+ },
316
322
  },
317
- };
323
+ authenticationFactor: startResult.authenticationFactor,
324
+ methods: startResult.methods,
325
+ });
326
+ }
327
+
328
+ async challengeExistingAccount(
329
+ parameters: FlowExistingAccountStartResultV2
330
+ ): Promise<
331
+ | FlowExistingAccountChallengeResultV2
332
+ | FlowMethodSelectionRequiredResultV2
333
+ > {
334
+ const { continuationState, correlationId } = parameters;
318
335
  this.ensureAuthenticationFactor(
319
- startResult.authenticationFactor,
336
+ parameters.authenticationFactor,
320
337
  AuthenticationFactorV2.SINGLE_FACTOR,
321
338
  "existing-account sign-up",
322
339
  correlationId
323
340
  );
324
- const supportedMethods = startResult.methods
341
+ const supportedMethods = parameters.methods
325
342
  .map((method) => ({
326
343
  id: method.id,
327
344
  type: method.type ?? "",
@@ -610,7 +627,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
610
627
  continuationState: {
611
628
  ...continuationState,
612
629
  continuationToken: result.continuationToken,
613
- links: {},
630
+ links: { continue: result.continueHref },
614
631
  },
615
632
  });
616
633
  }
@@ -618,6 +635,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
618
635
  return this.completeSignInAfterVerification(
619
636
  continuationState,
620
637
  result.continuationToken,
638
+ result.continueHref,
621
639
  correlationId
622
640
  );
623
641
  }
@@ -699,7 +717,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
699
717
  continuationState: {
700
718
  ...continuationState,
701
719
  continuationToken: verifyResult.continuationToken,
702
- links: {},
720
+ links: { continue: verifyResult.continueHref },
703
721
  },
704
722
  });
705
723
  }
@@ -730,17 +748,6 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
730
748
  );
731
749
  }
732
750
 
733
- if (
734
- continuationState.scenario === CustomAuthFlowScenarioV2.SignUp &&
735
- continuationState.signUp?.purpose === "existingAccount"
736
- ) {
737
- return this.handleSignInVerification(
738
- continuationState,
739
- verifyResult,
740
- correlationId
741
- );
742
- }
743
-
744
751
  if (continuationState.scenario === CustomAuthFlowScenarioV2.SignUp) {
745
752
  return this.handleSignUpVerification(
746
753
  continuationState,
@@ -797,7 +804,8 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
797
804
  }
798
805
 
799
806
  async submitSignUpAttributes(
800
- parameters: FlowSubmitSignUpAttributesParamsV2
807
+ parameters: FlowSubmitSignUpAttributesParamsV2,
808
+ step: "submitAttributes" | "submitPassword" = "submitAttributes"
801
809
  ): Promise<FlowSignUpSubmitAttributesResultV2> {
802
810
  const {
803
811
  continuationState,
@@ -807,7 +815,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
807
815
  const context = this.createRequestContext(
808
816
  this.resolveStepApiId(
809
817
  continuationState.scenario,
810
- "submitAttributes",
818
+ step,
811
819
  correlationId
812
820
  ),
813
821
  correlationId
@@ -976,7 +984,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
976
984
  continuationToken: pollResult.continuationToken,
977
985
  scenario: continuationState.scenario,
978
986
  scopes: continuationState.scopes,
979
- links: {},
987
+ links: { continue: pollResult.continueHref },
980
988
  },
981
989
  });
982
990
  }
@@ -1028,6 +1036,10 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1028
1036
  const tokenResponse = await this.apiClient.completeWithTokens(
1029
1037
  {
1030
1038
  continuationToken: continuationState.continuationToken,
1039
+ continueHref: this.requireLink(
1040
+ correlationId,
1041
+ continuationState.links.continue
1042
+ ),
1031
1043
  },
1032
1044
  context
1033
1045
  );
@@ -1095,6 +1107,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1095
1107
  return this.completeSignInAfterVerification(
1096
1108
  continuationState,
1097
1109
  verifyResult.continuationToken,
1110
+ verifyResult.continueHref,
1098
1111
  correlationId
1099
1112
  );
1100
1113
  }
@@ -1173,7 +1186,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1173
1186
  continuationState: {
1174
1187
  ...continuationState,
1175
1188
  continuationToken: verifyResult.continuationToken,
1176
- links: {},
1189
+ links: { continue: verifyResult.continueHref },
1177
1190
  },
1178
1191
  });
1179
1192
  }
@@ -1402,7 +1415,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1402
1415
  continuationState: {
1403
1416
  ...continuationState,
1404
1417
  continuationToken: result.continuationToken,
1405
- links: {},
1418
+ links: { continue: result.continueHref },
1406
1419
  },
1407
1420
  });
1408
1421
  }
@@ -1535,6 +1548,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1535
1548
  private completeSignInAfterVerification(
1536
1549
  continuationState: FlowContinuationStateV2,
1537
1550
  continuationToken: string,
1551
+ continueHref: string,
1538
1552
  correlationId: string
1539
1553
  ): Promise<FlowCompletedResultV2> {
1540
1554
  return this.signInWithContinuation({
@@ -1542,7 +1556,7 @@ export class FlowInteractionClientV2 extends InteractionClientBaseV2 {
1542
1556
  continuationState: {
1543
1557
  ...continuationState,
1544
1558
  continuationToken,
1545
- links: {},
1559
+ links: { continue: continueHref },
1546
1560
  },
1547
1561
  });
1548
1562
  }
@@ -8,6 +8,10 @@ import { AuthenticationMethodV2 } from "../../../auth_flow/v2/AuthenticationMeth
8
8
  import { FlowContinuationStateV2 } from "../FlowContinuationStateV2.js";
9
9
  import { SignUpAttributeV2 } from "../../../network_client/custom_auth_api/v2/result/SignUpResultsV2.js";
10
10
  import { AuthenticationMethodRegistrationV2 } from "../../../auth_flow/v2/AuthenticationMethodRegistrationV2.js";
11
+ import type {
12
+ AuthenticationFactorV2,
13
+ StartMethodV2,
14
+ } from "../../../network_client/custom_auth_api/v2/result/BaseResultsV2.js";
11
15
 
12
16
  interface FlowActionResultBaseV2 {
13
17
  type: string;
@@ -46,6 +50,14 @@ export interface FlowExistingAccountPasswordRequiredResultV2
46
50
  continuationState: FlowContinuationStateV2;
47
51
  }
48
52
 
53
+ export interface FlowExistingAccountStartResultV2
54
+ extends FlowActionResultBaseV2 {
55
+ type: typeof FLOW_EXISTING_ACCOUNT_START_V2;
56
+ continuationState: FlowContinuationStateV2;
57
+ authenticationFactor: AuthenticationFactorV2;
58
+ methods: StartMethodV2[];
59
+ }
60
+
49
61
  export interface FlowResetPasswordCodeRequiredResultV2
50
62
  extends FlowCodeRequiredResultV2 {
51
63
  method: AuthenticationMethodV2;
@@ -127,8 +139,7 @@ export type FlowExistingAccountChallengeResultV2 =
127
139
 
128
140
  export type FlowSignUpStartResultV2 =
129
141
  | FlowCodeRequiredResultV2
130
- | FlowExistingAccountChallengeResultV2
131
- | FlowMethodSelectionRequiredResultV2;
142
+ | FlowExistingAccountStartResultV2;
132
143
 
133
144
  export type FlowResetPasswordStartResultV2 =
134
145
  | FlowMethodSelectionRequiredResultV2
@@ -163,6 +174,8 @@ export const FLOW_EXISTING_ACCOUNT_CODE_REQUIRED_V2 =
163
174
  "FlowExistingAccountCodeRequiredResultV2";
164
175
  export const FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2 =
165
176
  "FlowExistingAccountPasswordRequiredResultV2";
177
+ export const FLOW_EXISTING_ACCOUNT_START_V2 =
178
+ "FlowExistingAccountStartResultV2";
166
179
  export const FLOW_PASSWORD_REQUIRED_V2 = "FlowPasswordRequiredResultV2";
167
180
  export const FLOW_SIGN_UP_PASSWORD_REQUIRED_V2 =
168
181
  "FlowSignUpPasswordRequiredResultV2";
@@ -201,6 +214,12 @@ export function createFlowExistingAccountPasswordRequiredResultV2(
201
214
  return { type: FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2, ...input };
202
215
  }
203
216
 
217
+ export function createFlowExistingAccountStartResultV2(
218
+ input: Omit<FlowExistingAccountStartResultV2, "type">
219
+ ): FlowExistingAccountStartResultV2 {
220
+ return { type: FLOW_EXISTING_ACCOUNT_START_V2, ...input };
221
+ }
222
+
204
223
  export function createFlowPasswordRequiredResultV2(
205
224
  input: Omit<FlowPasswordRequiredResultV2, "type">
206
225
  ): FlowPasswordRequiredResultV2 {
@@ -138,6 +138,7 @@ export abstract class BaseApiClientV2 {
138
138
  context: RequestContextV2
139
139
  ): Promise<TokenResponseV2> {
140
140
  const code = await this.authorizeChallengeContinue(
141
+ request.continueHref,
141
142
  request.continuationToken,
142
143
  context
143
144
  );
@@ -149,6 +150,7 @@ export abstract class BaseApiClientV2 {
149
150
  * Redeems a continuation token for an authorization code.
150
151
  */
151
152
  protected async authorizeChallengeContinue(
153
+ continueHref: string,
152
154
  continuationToken: string,
153
155
  context: RequestContextV2
154
156
  ): Promise<string> {
@@ -158,7 +160,7 @@ export abstract class BaseApiClientV2 {
158
160
 
159
161
  const parsedResponse =
160
162
  await this.postOAuthForm<AuthorizeChallengeContinueResponseV2>(
161
- AUTHORIZE_CHALLENGE,
163
+ resolveHrefV2(this.baseRequestUrl, continueHref),
162
164
  request,
163
165
  context
164
166
  );
@@ -273,19 +275,21 @@ export abstract class BaseApiClientV2 {
273
275
  }
274
276
 
275
277
  private async postOAuthForm<T>(
276
- endpoint: string,
278
+ endpoint: string | URL,
277
279
  data: OAuthFormRequestV2 | AuthorizeChallengeContinueRequestV2,
278
280
  context: RequestContextV2
279
281
  ): Promise<ParsedResponseV2<T>> {
280
282
  const formData = new URLSearchParams(
281
283
  Object.entries(data) as [string, string][]
282
284
  );
283
- const url = buildUrl(
284
- this.baseRequestUrl.href,
285
- endpoint,
286
- this.customAuthApiQueryParams
287
- );
288
-
285
+ const url =
286
+ typeof endpoint === "string"
287
+ ? buildUrl(
288
+ this.baseRequestUrl.href,
289
+ endpoint,
290
+ this.customAuthApiQueryParams
291
+ )
292
+ : endpoint;
289
293
  const response = await this.sendRequest(
290
294
  url,
291
295
  HttpMethod.POST,