Post Change Password Flow

The Post Change Password Flow runs after a user resets or changes their password. You can use this flow to email the user after a password change or to notify another system that the user’s password has changed, so that other sessions not managed by Auth0 can be revoked.

Diagram showing the Actions Post Change Password Flow.

Actions in this flow are non-blocking (asynchronous), which means the Auth0 pipeline will continue to run without waiting for the Action to finish its execution. Thus, the Action's outcome does not affect the Auth0 transaction.


Post Change Password

The post-change-password trigger runs after a database connection user resets or changes their password.

Multiple Actions can be bound to this trigger, and the Actions will run in order. However, these Actions will be run asynchronously and will not block the password reset process.


Event object: Provides contextual information about the user and the connection on which the password was changed.

Common use cases

Invalidate the user’s session in another system

A post-change-password Action can be used to invalidate the user's session in another system:

const axios = require("axios");

 * @param {Event} event - Details about user whose password was changed.
exports.onExecutePostChangePassword = async (event) => {"", { params: { email: }});

Was this helpful?


Send an email after the user changes their password

const axios = require("axios");

exports.onExecutePostChangePassword = async (event) => {
  try {
        personalizations: [{
          to: [{ email: }]
        from: { email: '' },
        subject: 'Your password was changed',
        content: [{
          type: 'text/plain',
          value: 'The password for your ' + + ' account ' + + ' was recently changed.'
        headers: {
          'Authorization': 'Bearer ' + event.secrets.SENDGRID_API_KEY
  } catch (err) {
    console.log(`Error sending email to ${}:`, err.message)

Was this helpful?