Hey everyone, I am a bit lost after reading the Ory API Docs for hours. I have a browser app with a custom sign up form where the user enters their email address. Next, the users clicks a button which sends an AJAX request to my server. On the server I want to call the Ory API to register the new user by passing the email address and then Ory should send the user a one-time code via email. Next, my browser app will show an input form for the one-time code. After the user enters it, the app will produce another AJAX request to my server which would then call the Ory API to verify the one-time code. Is this possible?
In theory I should use
/self-service/registration/browser
first and then
/self-service/registration
to validate the one-time code. However, I don’t see a way to pass the email address to the first endpoint. EDIT: Maybe I use the 2nd endpoint as well to set
traits.email
?