# Built-in support for password expiration in Auth0

**URL:** <https://community.auth0.com/t/built-in-support-for-password-expiration-in-auth0/81525>\
**Category:** Get Help\
**Created:** [April 11, 2022, 4:29am UTC](https://community.auth0.com/t/built-in-support-for-password-expiration-in-auth0/81525 "2022-04-11T04:29:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satya.damodhar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/satya.damodhar/32/33507_2.png) [@satya.damodhar](https://community.auth0.com/u/satya.damodhar)\
**Post date:** [April 11, 2022, 4:29am UTC](https://community.auth0.com/t/built-in-support-for-password-expiration-in-auth0/81525/1 "2022-04-11T04:29:17Z")

</div>

Hi,

is password expiration based on the Number of day…s built-in functionality of Auth0??

if not how we can achieve this??

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 11, 2022, 10:21pm UTC](https://community.auth0.com/t/built-in-support-for-password-expiration-in-auth0/81525/3 "2022-04-11T22:21:14Z")

</div>

Hi @satya.damodhar ,

Thank you for posting this query on the Auth0 Community!

Password expiration can be implemented by rules. Please try creating a “Check Last Password Reset” rule.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![satya.damodhar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/satya.damodhar/32/33507_2.png) [@satya.damodhar](https://community.auth0.com/u/satya.damodhar)\
**Post date:** [April 12, 2022, 12:04am UTC](https://community.auth0.com/t/built-in-support-for-password-expiration-in-auth0/81525/4 "2022-04-12T00:04:43Z")

</div>

Hi Lihuza,

Thank you for your reply.

I tried using the Check Last pwd reset Rule. However, it is Authenticating the user but sends and custom error message in saml response to the application which we configured in rule.

can you please help me here by sharing the custom java script to display an error message on Auth0 screen “Your Password Expired” and LINK to click here to reset your password.
