Auth0 password change with actions

I am experiencing the same issue with what should be very basic code. What are we missing???

exports.onExecutePostLogin = async (event) => {
if (event.user.email !== undefined) {
    const auth0 = require('auth0');
    const authClient = new auth0.AuthenticationClient({
      domain: event.secrets.domain,
      clientId: event.secrets.clientId
    });

  const userAndConnection = {
      email: event.user.email,
      connection: 'Username-Password-Authentication'
    };

  // Send password change email
    await authClient.requestChangePasswordEmail(userAndConnection, (err) => {
      
      })
  }
};