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.

Hi @gerald.czifra , do you need anything specific from me to proceed? This issue is still relevant.

Hi @oleksii.voitenko

Thank you for reaching out on this matter!

I do apologise for the late reply, but reading through your use-case, I believe that our Forms feature is the only suitable option that covers the desired flow.

This feature allows for progressive profiling and adding the gathered information about the user into their metadata as required. You can configure the Form to trigger for Social Connections in order to gathered the missing information and continue using the Pre-User Registration Action for the all other cases that do trigger this Action type.

Please allow me to share some documentations that should cover your use-case and help with the development and implementation on your end:

At this moment the Forms feature would be the go-to option for covering the use-case that you are facing, as we currently do not have a different offering that can achieve the same result.

Hopefully this can work as intended and cover your needs, but please let us know if you require any further assistance on this matter and we’ll gladly look into it for you.

Thank you for your patience!
Gerald