I’ve seen a few posts asking about being able to send parameters over the signup that can be used in Actions and/or Rules and a lot of them reference using custom domains but I am trying to get it to work without custom domains.
Scenario:
We want to be able to distinguish between a “business” and an “individual” signup so our intention is to use the loginWithRedirect
with an extra parameter to be able to distinguish between the two.
authClient.loginWithRedirect({
screen_hint: 'signup',
extraParam: 'foo'
});
We have a pre-registration
action that is looking putting the entire event into the app_metadata
in order that we can see the query
exports.onExecutePreUserRegistration = async (event, api) => {
api.user.setAppMetadata('event', event);
};
Once the user has signed up we can see the entire event
in the app_metadata
but no sign of the extraParam
. Any ideas what we might be doing wrong?