You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ory elements UserAuthCard and only offering the passwordless one-time code the onSubmit method of the UserAuthCard is never called. I use a custom domain and I have disabled the ory account experience. What happens is that the {custom domain ory api endpoint url}/registration?flow=flow-id is opened, which in turn redirects to the {my custom domain website}/registration?flow=flow-id url. The onSubmit function is never called and I loose all query params like return_to in the process.
Reproducing the bug
Setup a web project which only offers passwordless one-time codes. Use ory elements and the UserAuthCard. Setup a custom domain. Write your email and click "sign up with code". The redirect is triggered. Should: not trigger any redirect, just trigger the onSubmit function.
Thank you for the report - we are working on a GA version of Ory Elements (breaking changes to be expected ...) which has a much better designed API, support for SSR, and many more features common in today's react ecosystem. It is therefore unlikely that we will resolve this issue in the current Ory Elements version but would accept PRs to fix it.
The current ory elements version will then go into maintenance mode where no new features are added but if important bugs or security issues exist, they would be resolved.
Preflight checklist
Ory Network Project
No response
Describe the bug
When using ory elements
UserAuthCard
and only offering the passwordless one-time code theonSubmit
method of theUserAuthCard
is never called. I use a custom domain and I have disabled the ory account experience. What happens is that the {custom domain ory api endpoint url}/registration?flow=flow-id is opened, which in turn redirects to the {my custom domain website}/registration?flow=flow-id url. TheonSubmit
function is never called and I loose all query params likereturn_to
in the process.Reproducing the bug
Setup a web project which only offers passwordless one-time codes. Use ory elements and the UserAuthCard. Setup a custom domain. Write your email and click "sign up with code". The redirect is triggered. Should: not trigger any redirect, just trigger the onSubmit function.
Relevant log output
No response
Relevant configuration
No response
Version
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
next.js, react, typescript
The text was updated successfully, but these errors were encountered: