Post user registration action is not triggered

I have the exact same problem as described in this now closed topic: Post Signup Action Not Working - #7 by thihara1

  • I created the below custom action, added it to the Post User Registration flow
const axios = require("axios");

exports.onExecutePostUserRegistration = async (event, api) => {
  try {
    console.log(`[INFO] NEW USER`);
    console.log(event.user);
    const config = { 'content-type': 'application/json' };
    const response = await axios.post(event.secrets.NANNY_API_URL, event.user, config);
    console.log(response.data);
  } catch (error) {
    console.log(error);
  }
};

  • I tested the action using the Test button. The action console showed the expected response from the backend
  • Now tried to sign up and the action is not triggered at all. “Success Signup” is added to the log but there is NO triggered action in the Details tab. I also installed the Real-time Webstack Logs extension, there was nothing. If you look at the code, at least the line “[INFO] NEW USER” should be printed.

I’m stuck.

Hi @donguyen426,

Welcome to the Auth0 Community!

What type of connection are you signing up with? Post-signup actions only work with Auth0 DB connections.