I have a very basic custom action deployed in Post Registration under Flows
The custom action basically passes 2 properties of the events.user object to our internal API
event.user.user_id
event.user.nickname
But strangely, event.user.nickname is always coming back “undefined”. I use to have this set as a hook under Rules and nickname was always returned fine, but for some reason its coming back undefined when using the below custom action (which I think is a relatively straight forward action)
const axios = require("axios");
exports.onExecutePostUserRegistration = async (event) => {
await axios.post(`INTERNAL_API?customerID=${event.user.user_id}&nickName=${event.user.nickname}`);
};