Configure session after Registration via code in Console
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
Enabling login/registration with the one-time code method won't enable the session hook after registration inside the console. It is also not clear what "sign in after registration" configures inside the console and if this only relates to the password method or other methods as well.
Describe your ideal solution
Configure the session hook after the registration via code method inside the console.
It is still possible to configure this value using the Ory CLI.
ory patch project <project-id> --replace '/services/identity/config/selfservice/flows/registration/after/code/hooks=[{"hook": "session"}]'
Add to docs
https://www.ory.sh/docs/identities/sign-in/actions#log-in-users-after-registration https://www.ory.sh/docs/kratos/passwordless/one-time-code
Workarounds or alternatives
None
Version
latest
Additional Context
No response
Is this still the case?
Yes, this is just a console change that needs to happen
Still the case, it works using CLI.
Thanks for your work, Ory is very easy to use otherwise