network icon indicating copy to clipboard operation
network copied to clipboard

Verification code loop

Open Big-Brother-Man opened this issue 2 years ago • 0 comments

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.

image

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 code property
  • [ ] Update the document to contain both link and code to be available now
  • [ ] Update @Ory/Client to propagate the changes.

Big-Brother-Man avatar Feb 16 '23 01:02 Big-Brother-Man