ACUL Sending custom data on signup

Hi

when doing a user signup in ACUL I want to send custom data.

this page has says that I can pass custom data, so I tried this

signupManager.signup({
email: ‘xxxxxx@hotmail.com’,
password: ‘xxxxxxx’,
family_name: ‘my name’,
given_name: ‘my last name’,
company: ‘My company’,
});

but in my pre-user-registration log action when I console.log the event, I don’t see “company”, “family_name” or “given_name” anywhere, only the email

what am I doing wrong here? I see it in the requests form data.

Thanks

Hi @brian_jorgensen,

Thanks for your question.

I have looked through our auth0-acul-js signup() documentation and did not find a way to pass additional data like the family_name, given_name, or company attributes to the signup() method.

This was justified by your experience of only seeing the email attribute when you tried to console.log the event.user object.

Since you are essentially creating a user on their behalf, you could consider using the Authentication API to create the user and pass in the family_name, given_name, and company attributes.

See our /dbconnections/signup endpoint reference on this.

If this does not work for you, then another option might be to use the Management API to either create or update the user.

Let me know how this goes for you.

Thanks,
Rueben

Hi Rueben

To bad, I would have liked to be able to pass custom data that way that then would be added as user_metadata, but ok, if that is not possible than we will create the user as we do today, by using the API you also suggest.

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.