# Passwordless flow accepting custom fields

**URL:** <https://community.auth0.com/t/passwordless-flow-accepting-custom-fields/198088>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [March 16, 2026, 9:41am UTC](https://community.auth0.com/t/passwordless-flow-accepting-custom-fields/198088 "2026-03-16T09:41:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliachxng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juliachxng/32/78730_2.png) [@juliachxng](https://community.auth0.com/u/juliachxng)\
**Post date:** [March 16, 2026, 9:41am UTC](https://community.auth0.com/t/passwordless-flow-accepting-custom-fields/198088/1 "2026-03-16T09:41:02Z")

</div>

Is there any way to pass custom fields with passwordless flow in order to populate a user profile? i.e. If my sign up screen allows user to input their name and birthday, can I have that information passed through Auth0’s passwordless API? We want to be able to store that extra information during passwordless sign up. Thanks!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [March 16, 2026, 9:58pm UTC](https://community.auth0.com/t/passwordless-flow-accepting-custom-fields/198088/3 "2026-03-16T21:58:46Z")

</div>

Hi @juliachxng

Thank you for reaching out to us!

After doing some research on this matter, it appears that data captured from a prompt in a Passwordless signup flow is only available in the [Post Login Action trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/post-login-event-object), and will not populate the [Pre-User Registration trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/pre-user-registration-trigger). This is important, as it would seem natural to us the Pre-User Registration Trigger to capture user data before the user creation, but since users are automatically logged in after a successful Passwordless sign-up, the Post-Login Action can be triggered to update the user’s profile with the desired information. This is outlined in our documentation on how to [Customize Signup and Login Prompts](https://auth0.com/docs/customize/login-pages/universal-login/customize-signup-and-login-prompts#:~:text=When%20using%20a%20Passwordless%20connection).

To implement the correct logic, you can rely on the `event.stats.logins_count` [property](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/post-login-event-object#param-logins-count:~:text=this%20user%20has-,logged%20in,-) exposed in the Post Login Action which if it returns " 1 " it indicates that the user has just signed up. Once done, you can store your custom information on the user’s `app_metadata`, something similar to the following:

```auto
exports.onExecutePostLogin = async (event, api) => {
  if (event.stats.logins_count === 1) {
    api.user.setUserMetadata("name", "USER_NAME"); // Replace with the actual name
    api.user.setUserMetadata("birthday", "USER_BIRTHDAY"); // Replace with the actual birthday
  }
};

```

Hope this helped you achieve your desired flow! Please don’t hesitate to reach out to us for any other issues or requests.

Have a great one!  
Gerald

---

<div class="post-metadata">

**Author:** ![juliachxng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juliachxng/32/78730_2.png) [@juliachxng](https://community.auth0.com/u/juliachxng)\
**Post date:** [March 19, 2026, 12:13am UTC](https://community.auth0.com/t/passwordless-flow-accepting-custom-fields/198088/4 "2026-03-19T00:13:09Z")

</div>

Thanks @gerald.czifra !

This is what I did in my Post Login Actions and it works for updating the root profile fields. However, after a while those fields end up showing “undefined undefined” in the Auth0 user profile. Why is that happening?

```auto
  // Also promote to root profile fields
  const { ManagementClient } = require('auth0');

  // Set secrets here
  // ...

  await management.users.update(event.user.user_id, { 
    given_name, 
    family_name,
    name: `${given_name} ${family_name}`,
  });

```
