kratos
kratos copied to clipboard
Enable session action after verification
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.
- [ ] This issue affects my Ory Network project.
- [X] I have joined the Ory Community Slack.
- [X] I am signed up to the Ory Security Patch Newsletter.
Describe your problem
Currently, the session
hook is only supported at the registration flow.
session | Signs in the user immediately after they create an account. | For use only with the after registration flow. To use it, you must define secrets for secret rotation.
Source: https://www.ory.sh/docs/kratos/hooks/configure-hooks#available-actions
Now, it's user friendly if, after clicking the verification link or entering the one time code, the user gets automatically logged in.
Describe your ideal solution
Support also the session action in the verification flow.
Workarounds or alternatives
Actually, it would be even better if the verification flow automatically worked that way, without need of configuration: one thing less to configure and be aware of, and users would be happier.
Version
0.11.1
Additional Context
No response
I know I know "PRs are welcome". Well, give me some hints, maybe a similar PR, and I can give a try...
This feature will be very helpful. Also I think we should consider adding the ability to modify identity during verification flow
hey, when can we get this, we need this standard workflow!