Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User is not logged in after registering using passwordless one-time code #385

Open
5 tasks done
janoschp opened this issue May 26, 2024 · 1 comment
Open
5 tasks done
Labels
bug Something is not working.

Comments

@janoschp
Copy link

janoschp commented May 26, 2024

Preflight checklist

Ory Network Project

https://clever-chatterjee-k3z6gyrj80.projects.oryapis.com

Describe the bug

I have enabled passwordless one-time codes as an option for registering. I have also enabled the option "Enable sign in after registration" in the ory console of my project. As a secondary registration option I offer passkeys. When I register using the one-time code I am not automatically logged in. This means that I have to login after registering and copy the code from the email again, which is a terrible user experience and redundant step. When I register using a passkey, then there is no problem, I am logged in right away.

Reproducing the bug

Setup a project that uses ory network, enable passwordless one-time code as a registration option and "enable sign in after registration". Register using a one-time code. Result: Account is created but the user is not logged in after registering.

Relevant log output

No response

Relevant configuration

No response

Version

"@ory/client": "^1.9.0",     "@ory/elements": "^0.2.0",     "@ory/integrations": "^1.1.5",

On which operating system are you observing this issue?

Ory Network

In which environment are you deploying?

Ory Network

Additional Context

Next.js

@janoschp janoschp added the bug Something is not working. label May 26, 2024
@zepatrik
Copy link
Member

There are unfortunately a few issues with the hooks, execution order and console. Ideally, you would use the Ory CLI instead of the console to manage the hooks. See #361 (comment) for some details on how to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants