Does someone know if the `session` hook will trigg...
# ory-selfhosting
s
Does someone know if the
session
hook will trigger a login->after hook?
w
Not sure, but if you find out the answer please do let me know! We're considering using the hooks to simplify some things in our platform, but I haven't had a chance to properly get into it yet.
s
It does not. Solution now is to trigger the same hook both on registration->after and login->after. The docs for the self-hosted version is missing lots of the things kratos can do. I advise to use the code to learn how things work, not the docs 🙂
👍 1
s
lso I would suggest, during developement, you pass the highest level object (ctx ?) in the jsonnet to your hook URL, then you can examine what fields are available and decide if you have all the data you need and whay it is called.