Ability to Prompt Users for First and Last Name when using the New Universal Login Experience Signup Flow

Problem Statement

We would like to be able to prompt users for first and last name when using the New Universal Login Experience signup flow. How can we accomplish this?

Solution

Unfortunately, at the moment, custom fields on the signup feature are not available in the New Universal Login as documented here:

If you wish to implement the New Universal Login and still be able to capture the additional field values, then as a workaround, you can use Progressive Profiling as explained here:

If you decide to use progressive profiling, you will have to first redirect a user to your website where they can fill a form by proving additional information (such as name, etc.), and then redirect back to the /continue endpoint to complete the flow.

The following page explains in more detail how to implement redirection with actions.

The redirection logic can be coded to work only for the users logging in the first time and here you could further add some metadata to the user profile on your page using the ‘PATCH /api/v2/users/{id}’ Management API

https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id

in your backend to update the app_metadata and user_metadata of the user based on your requirements.

The same redirection idea works with Rules too.

As the rules are relatively aged we have some samples for progressively profiling the user on the repository below. A similar idea could be possible to implement with Actions. We suggest reviewing the code for Rules and building a similar solution with Actions.

There are plans to implement more flexibility and improvements to the New Universal Login Experience in the release pipeline. However, we don’t have an exact timeline that we can share publicly.

2 Likes