Check last password reset within rule

Problem Statement

We would like to check the last time a user had his password reset upon login. How can we do this?

Symptoms

  • Check the last time a user had his password reset upon login

Solution

To retrieve the last password change date, we recommend using the [/userinfo](https://auth0.com/docs/api/authentication#get-user-info) endpoint on the Authentication API to query for this information.

This endpoint will only work if openid was passed as a scope during the request for an Access Token.

Reference Materials