mysterious-kitchen-18431
03/13/2025, 7:25 PMbrief-egg-61061
03/13/2025, 7:25 PMbrief-egg-61061
03/13/2025, 7:25 PMbefore
and after
login - before
and after
registration - before
and after
recovery - before
and after
settings - before
and after
verification There's also information about the revoke_active_sessions
hook which can be used to log out users from all other active sessions when they log in or change their password, but this is different from triggering an action when a session expires. If you need to perform custom logic after session expiration, you might want to consider using webhooks with other flows or reaching out to Ory support for more specific guidance on this use case, as it's not covered in the provided documentation.mysterious-kitchen-18431
03/13/2025, 7:28 PMbrief-egg-61061
03/13/2025, 7:28 PMbrief-egg-61061
03/13/2025, 7:28 PMyaml hook: web_hook config: url: <https://your-webhook-endpoint.com> method: POST body: <base64://ENCODED_JSONNET> response: ignore: false parse: false auth: type: basic_auth config: user: username password: password
However, as mentioned in my previous response, there doesn't appear to be a specific trigger for session expiration events in the documentation provided. The available hooks are primarily for self-service flows (login, registration, recovery, settings, verification) and OAuth2 token operations. If you specifically need to react to session expirations, you might need to explore alternative approaches or contact Ory support for more specific guidance on this use case. It's worth noting that when configuring webhooks, you should be careful about the order of hooks, especially when using the session
hook, as it should be placed last in the sequence since it modifies the HTTP response and prevents other hooks from executing afterward [Troubleshoot Ory Actions Webhook issues](https://www.ory.sh/docs/troubleshooting/troubleshoot-actions).