prehistoric-boots-58621
07/10/2023, 2:37 PM<form>
request logic when building our own login/consent UI, is there a way of updating login flow and receiving the redirect information without triggering 4XX error codes?prehistoric-boots-58621
07/12/2023, 12:50 PMnumerous-dawn-55367
07/12/2023, 1:18 PMBrowser flows with an accept header ofhttps://www.ory.sh/docs/reference/api#tag/frontend/operation/updateRegistrationFlow Sounds relevant to what you're trying to achievewill not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and aapplication/json
header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors.Set-Cookie
prehistoric-boots-58621
07/12/2023, 4:45 PMprehistoric-boots-58621
07/12/2023, 4:45 PMprehistoric-boots-58621
07/13/2023, 2:00 PMAccept
header on frontend API updateLoginFlow JS axios call and still got 422.flat-flower-81031
07/14/2023, 9:05 AMprehistoric-boots-58621
07/14/2023, 12:41 PMprehistoric-boots-58621
07/14/2023, 12:51 PMlimited-photographer-61008
07/14/2023, 1:10 PMprehistoric-boots-58621
07/14/2023, 1:11 PMlimited-photographer-61008
07/14/2023, 1:13 PMerr.response.data
will have a redirect_browser_to
value. You need to redirect to it. It can’t just return a 200 since you need to go somewhere else to finish the flow.prehistoric-boots-58621
07/14/2023, 1:14 PMprehistoric-boots-58621
07/14/2023, 1:16 PMpassword
payload, where I would receive a 200 back containing a JSON payload with a redirect URL?limited-photographer-61008
07/14/2023, 1:16 PMlimited-photographer-61008
07/14/2023, 1:17 PMprehistoric-boots-58621
07/14/2023, 1:18 PM