Revoke access token of an account after password reset

After a user resets their password I need to logout all the active sessions for that account. Ie, if I have 2 computers logged into the same account and reset the password to the account. All the current windows should redirect to the login page.

I saw in a comment somewhere to make a Post-Change-Password Auth0 hook and revoke all access tokens. But that solution revokes every access token currently logged in? Can you please show an example ?