flaky-kilobyte-10585
05/27/2025, 9:58 AMbrief-egg-61061
05/27/2025, 9:58 AMbrief-egg-61061
05/27/2025, 9:58 AMhook_3
is executed when the user logs in with a password, hook_2
is executed when the user logs in with any other method... > yaml > selfservice: > flows: > login: > after: > hooks: > - hook: hook_2 > password: > hooks: > - hook: hook_3 >
> [Docs: Trigger precedence](https://www.ory.sh/docs/kratos/hooks/configure-hooks#trigger-precedence) This behavior is also confirmed in community discussions and issue comments, where it is noted that method-specific hooks override the global ones for that method, and only the method-specific hooks will be triggered for that authentication method [Webhook not working for registration with code
method](https://github.com/ory/network/issues/346).