Ask AI is now on the home page — ask a question and get a sourced answer from the Ory docs. You'll also find it in the bottom-right corner of any page.

Skip to main content

Revoke other active user sessions after changing the password

In certain use cases, it is important to increase security by terminating active user sessions when they change their password. To do this, you can add the revoke_active_sessions Ory Action to the hooks configuration.

Configuration overview

Add the `revoke_active_sessions' action to the settings hook configuration in the config file.

config.yml
selfservice:
flows:
settings:
after:
password:
hooks:
- hook: revoke_active_sessions