Successful Recovery returns 422 instead of 200 #53
-
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.
Replies: 2 comments 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.
-
The documentation you link to assume, you are getting a response including a url with a flowId. But I receive a oidc redirect looking more like: "http://localhost:4000/oauth2/auth?audience=..." How do I handle this flow? |
Beta Was this translation helpful? Give feedback.
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