<@U04UQ68083H> is there some documentation on orde...
# ory-copilot
b
@chilly-king-10285 is there some documentation on order of execution of hooks in the same "after" section?
c
A message from kapa.ai
New message text here
b
consider kratos config:
Copy code
registration:
      after:
        password:
          hooks:
            - hook: web_hook
            - hook: web_hook
            - hook: session
is there a guaranteed order of execution @chilly-king-10285
c
A message from kapa.ai
Based on the provided configuration, the hooks under the
after
section of the
password
registration flow will be executed in the order they are listed. So, the
web_hook
will be executed first, followed by the second
web_hook
, and finally the
session
hook. However, the documentation does not explicitly mention the order of execution for hooks listed under the same section. It's generally a good practice to assume that the order of execution is the same as the order of listing, but for a definitive answer, you might want to check with the Ory Kratos community or support. For more information about hooks and their configuration, you can refer to the [Ory Kratos Hooks Documentation](https://www.ory.sh/docs/kratos/hooks/configure-hooks).