network
network copied to clipboard
Verification code loop
Discussed in https://github.com/orgs/ory/discussions/50
Hi all, I have been struggling with an issue for a while. Turns out the documentation has not been updated. The complete verification flow currently, does not show both code and link but just link for instance. It also does not take code part of its body.

If a user follows the above they would not be able to complete verification flow. Instead they would need to include code part of the body as shown as bellow.
const verify = {
flow: data.flowId,
updateVerificationFlowBody: {
method: "code",
email: "[email protected]",
csrf_token: data.csrf,
code: data.code
},
}
Would love to update the document to reflect the current way ORY consumes and completes flow instead of what is there which does not take code (but user would make a judgment call thinking token == code which is not the case).
- [ ] Update the updateVerificationFlowBody to contain
codeproperty - [ ] Update the document to contain both link and code to be available now
- [ ] Update @Ory/Client to propagate the changes.