# Logout all users after change password

**URL:** <https://community.auth0.com/t/logout-all-users-after-change-password/82590>\
**Category:** Get Help\
**Tags:** api, auth0, login\
**Created:** [April 28, 2022, 8:02pm UTC](https://community.auth0.com/t/logout-all-users-after-change-password/82590 "2022-04-28T20:02:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eli2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eli2/32/14596_2.png) [@eli2](https://community.auth0.com/u/eli2)\
**Post date:** [April 28, 2022, 8:02pm UTC](https://community.auth0.com/t/logout-all-users-after-change-password/82590/1 "2022-04-28T20:02:40Z")

</div>

Hi, I am using Next js.

How to implement the logout of all users after a password change. I mean, I need to set a short access token lifetime and use revoke refresh token after password change. But I don’t know how to implement this with Next js (what settings I need to do or something else).

Thanks

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 11:34am UTC](https://community.auth0.com/t/logout-all-users-after-change-password/82590/4 "2022-12-22T11:34:25Z")

</div>



---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 4, 2024, 3:12am UTC](https://community.auth0.com/t/logout-all-users-after-change-password/82590/5 "2024-12-04T03:12:39Z")

</div>

Hi @eli2,

Welcome to the Auth0 Community!

Updating a password, email, or phone number causes a user’s Auth0 session to expire. (Reference: [Sessions](https://auth0.com/docs/manage-users/sessions#session-use-cases:~:text=Updating%20a%20password%2C%20email%2C%20or%20phone%20number%20also%20causes%20a%20user%27s%20Auth0%20session%20to%20expire.))

In this case, the user will be prompted to re-authenticate your app after changing their passwords.

Thanks,  
Rueben
