Passing custom values from Universal Login template to Actions

Hi all,

I am collecting the user input from the custom dropdown HTML element in the sign-up form using the Universal Login template. So i can access this value in the pre-user-registration action:

exports.onExecutePreUserRegistration = async (event, api) => {
  api.user.setUserMetadata("some-custom-info", event.request.body["ulp-dropdown-element"]);
};

But this value in the request body is not available in post-login action. This is an issue in my case because i am using both email-password and social providers and pre-user-registration action is not being involved when the user is being created with the social provider.

Is there any way to get access the value in the custom HTML element in the post-login action?

Hi @oleksii.voitenko

Welcome to the Auth0 Community!

Please allow me some time to look into it and I will be back with more information as soon as possible.

Thank you!
Gerald

Hi @gerald.czifra, any updates so far? I’d love to provide you with any additional info if needed.