Successful Recovery returns 422 instead of 200 #53
Answered
by
Benehiko
Big-Brother-Man
asked this question in
Q&A
-
Hi all, I hope you are all doing well. When I have a successful recovery of a user instead of getting 200 I get a 422. Here is a snpitted of the response
Is this intended? Please let me know (maybe is best possible response duo to a redirect?) and explain to me like I am stupid thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
Benehiko
Mar 13, 2023
Replies: 1 comment 3 replies
-
When working with AJAX the response is 422 when a new flow needs to be created. In server-side Apps a redirect will occur automatically. This happens in submitting oidc and passwordless flows, among other instances. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Big-Brother-Man
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Big-Brother-Man
When working with AJAX the response is 422 when a new flow needs to be created. In server-side Apps a redirect will occur automatically.
This happens in submitting oidc and passwordless flows, among other instances.
https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-advanced-integration#spas-and-the-422-error