# \#pre-user-registratio

**URL:** https://community.auth0.com/tag/pre-user-registratio/666.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Improve UX in Passwordless Flow with Domain-Based Registration Blocking](https://community.auth0.com/t/improve-ux-in-passwordless-flow-with-domain-based-registration-blocking/188198)

<div class="topic-metadata">

**Author:** [@agus](https://community.auth0.com/u/agus)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 1:27am UTC](https://community.auth0.com/t/improve-ux-in-passwordless-flow-with-domain-based-registration-blocking/188198 "2025-06-30T01:27:48Z")

</div>

In the New Universal Login experience, both for passwordless email and username/password authentication flows, there’s a UX issue when using a Pre-User Registration Action to block certain email domains. Currently, even…

---

## [Setting and accessing user.user\_metadata in passwordless email templates](https://community.auth0.com/t/setting-and-accessing-user-user-metadata-in-passwordless-email-templates/86933)

<div class="topic-metadata">

**Author:** [@cdefoe](https://community.auth0.com/u/cdefoe)\
**Replies:** 1\
**Last updated:** [May 15, 2024, 2:47pm UTC](https://community.auth0.com/t/setting-and-accessing-user-user-metadata-in-passwordless-email-templates/86933 "2024-05-15T14:47:08Z")

</div>

Hello, I am trying to set up localization for a Passwordless verification code email in order to have English and Spanish translated emails. We currently have the Universal Login page localization working and correctly…

---

## [Redirection on failed registration](https://community.auth0.com/t/redirection-on-failed-registration/86751)

<div class="topic-metadata">

**Author:** [@psandor](https://community.auth0.com/u/psandor)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 5:18pm UTC](https://community.auth0.com/t/redirection-on-failed-registration/86751 "2022-10-11T17:18:10Z")

</div>

Hi, We use passwordless login with a custom Universal Login login page based on the Lock (Passwordless) template. In the Pre User Registration flow we use a script that approves registration based if the email domain i…

---

## [Using api.user.setAppMetadata() in Pre Registration Action for Passwordless flow](https://community.auth0.com/t/using-api-user-setappmetadata-in-pre-registration-action-for-passwordless-flow/89894)

<div class="topic-metadata">

**Author:** [@cmaciel](https://community.auth0.com/u/cmaciel)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 12:25am UTC](https://community.auth0.com/t/using-api-user-setappmetadata-in-pre-registration-action-for-passwordless-flow/89894 "2022-09-08T00:25:13Z")

</div>

Hello, I’m trying to add some data to a user’s app\_metadata in a pre-registration action for a passwordless flow. However, when running something like this in my action: exports.onExecutePreUserRegistration = async (eve…

---

## [Help understanding error codes in pre-user-registration and post-login actions](https://community.auth0.com/t/help-understanding-error-codes-in-pre-user-registration-and-post-login-actions/89653)

<div class="topic-metadata">

**Author:** [@chris.middleton](https://community.auth0.com/u/chris.middleton)\
**Replies:** 3\
**Last updated:** [September 1, 2022, 10:15pm UTC](https://community.auth0.com/t/help-understanding-error-codes-in-pre-user-registration-and-post-login-actions/89653 "2022-09-01T22:15:10Z")

</div>

Hi, we’re using both pre-user-registration and post-login actions, and seems that error codes and descriptions are not consistent, so we’re trying to find ways to align them. Sample code of the pre-user-registration act…

---

## [Best practice for branching web form during Pre User Registration?](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536)

<div class="topic-metadata">

**Author:** [@mph-dzp](https://community.auth0.com/u/mph-dzp)\
**Replies:** 1\
**Last updated:** [August 18, 2022, 12:23am UTC](https://community.auth0.com/t/best-practice-for-branching-web-form-during-pre-user-registration/88536 "2022-08-18T00:23:01Z")

</div>

We want to allow signups only via user-entered email address and password (similar to Universal Flow), and also prompt the user for demographic info during signup. The prompts for input will change (or “branch”) based on…

---

## [Pre-user registration runs for existing users on passwordless](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608)

<div class="topic-metadata">

**Author:** [@thingsinjars](https://community.auth0.com/u/thingsinjars)\
**Replies:** 1\
**Last updated:** [March 9, 2022, 9:32pm UTC](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608 "2022-03-09T21:32:11Z")

</div>

We’re using a pre-user registration hook to allow sign-ups only from pre-approved domains but we also have manually-created accounts that don’t match the pre-approved domains. This shouldn’t be a problem as the pre-user…

---

## [Add user\_metadata in pre-user-registration hook from invitation data](https://community.auth0.com/t/add-user-metadata-in-pre-user-registration-hook-from-invitation-data/71578)

<div class="topic-metadata">

**Author:** [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 12:30pm UTC](https://community.auth0.com/t/add-user-metadata-in-pre-user-registration-hook-from-invitation-data/71578 "2021-10-20T12:30:05Z")

</div>

Hi @jeff0, Thanks for your time to help me with this issue. After sending an organization membership invitation, when the user goes to the organization signup page, he always gets an error because of the pre-user-regist…

---

## [Auth0 Actions - Pre User Registration Flow](https://community.auth0.com/t/auth0-actions-pre-user-registration-flow/70998)

<div class="topic-metadata">

**Author:** [@sanjin.o](https://community.auth0.com/u/sanjin.o)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 1:01pm UTC](https://community.auth0.com/t/auth0-actions-pre-user-registration-flow/70998 "2021-10-08T13:01:15Z")

</div>

Hi, Currently, we are using Auth0 “Resource Owner Password Flow” for the authentication of our users with Auth0. Our backend application (server-side) is using “Auth0 Management API” to communicate with Auth0. We have …

---

## [Pre-registration hook says "something went wrong", but not in the runner](https://community.auth0.com/t/pre-registration-hook-says-something-went-wrong-but-not-in-the-runner/63491)

<div class="topic-metadata">

**Author:** [@skuklau](https://community.auth0.com/u/skuklau)\
**Replies:** 2\
**Last updated:** [June 7, 2021, 10:36am UTC](https://community.auth0.com/t/pre-registration-hook-says-something-went-wrong-but-not-in-the-runner/63491 "2021-06-07T10:36:26Z")

</div>

I have a pre-registration hook that bans some e-mail domains: module.exports = function (user, context, cb) { var response = {}; response.user = user; const blackList = \["foo", "bar", "baz"\]; const emailDomain…

---

## [Pre User Registration adding of 'user\_metadata'](https://community.auth0.com/t/pre-user-registration-adding-of-user-metadata/63724)

<div class="topic-metadata">

**Author:** [@killianoneachtain](https://community.auth0.com/u/killianoneachtain)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 2:25pm UTC](https://community.auth0.com/t/pre-user-registration-adding-of-user-metadata/63724 "2021-06-02T14:25:39Z")

</div>

Hi, I am trying to add ‘user\_metadata’ for each user on registration. I am currently allowing users to only register via Spotify. It is all working fine for me, except that i can’t create a default value in my ‘user\_me…

---

## [ESOCKETTIMEDOUT with Pre User Registration hook](https://community.auth0.com/t/esockettimedout-with-pre-user-registration-hook/39695)

<div class="topic-metadata">

**Author:** [@brandon.verigin](https://community.auth0.com/u/brandon.verigin)\
**Replies:** 1\
**Last updated:** [March 20, 2020, 8:34am UTC](https://community.auth0.com/t/esockettimedout-with-pre-user-registration-hook/39695 "2020-03-20T08:34:18Z")

</div>

Recently we’ve been receiving ESOCKETTIMEDOUT errors during signup when there’s no apparent reason why they should be happening. When a user signs up through our universal login page, a pre user registration hook makes …

---

## [Custom user registration](https://community.auth0.com/t/custom-user-registration/9343)

<div class="topic-metadata">

**Author:** [@pierre.lessard](https://community.auth0.com/u/pierre.lessard)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 6:18pm UTC](https://community.auth0.com/t/custom-user-registration/9343 "2018-12-14T18:18:39Z")

</div>

Hello! We’re trying to implement this scenario : When the is signing-up, an email is sent to him containing an activation link; When the user clicks on this link, we would like to ask him some other questions to valid…

---

## [Error 500 pre-registration hook](https://community.auth0.com/t/error-500-pre-registration-hook/9015)

<div class="topic-metadata">

**Author:** [@baik.jaehyun.at](https://community.auth0.com/u/baik.jaehyun.at)\
**Replies:** 1\
**Last updated:** [December 19, 2017, 6:27pm UTC](https://community.auth0.com/t/error-500-pre-registration-hook/9015 "2017-12-19T18:27:03Z")

</div>

hi I m trying to use aws-sdk module in pre-registration hook but I got this error: { “message”: “Unable to compile the extensibility code as javascript”, “statusCode”: 500, “error\_description”: “Unable to compile th…

---

## [Pre-User Registration Hook for Phone Number short/verification code](https://community.auth0.com/t/pre-user-registration-hook-for-phone-number-short-verification-code/8448)

<div class="topic-metadata">

**Author:** [@davidhong85](https://community.auth0.com/u/davidhong85)\
**Replies:** 0\
**Last updated:** [October 11, 2017, 12:48pm UTC](https://community.auth0.com/t/pre-user-registration-hook-for-phone-number-short-verification-code/8448 "2017-10-11T12:48:57Z")

</div>

I’m building a Android and I would like to use Phone Number as Username instead of email with a password. During user registration process, a SMS verification code should send to the user’s Phone and then user can acti…

---

## [Pre Registration hook :Displaying wrong error message despite a correct response in runner](https://community.auth0.com/t/pre-registration-hook-displaying-wrong-error-message-despite-a-correct-response-in-runner/8157)

<div class="topic-metadata">

**Author:** [@bami.falana](https://community.auth0.com/u/bami.falana)\
**Replies:** 2\
**Last updated:** [September 12, 2017, 6:13pm UTC](https://community.auth0.com/t/pre-registration-hook-displaying-wrong-error-message-despite-a-correct-response-in-runner/8157 "2017-09-12T18:13:46Z")

</div>

I am using the following hook to prevent some users from signing up via lock. module.exports = function (user, context, cb) { // Whitelisted domains const whitelist = 'example.com', 'example1.com' \]; …

---

## [Pre/Post registration hook: How to retrieve the audience?](https://community.auth0.com/t/pre-post-registration-hook-how-to-retrieve-the-audience/8134)

<div class="topic-metadata">

**Author:** [@roth](https://community.auth0.com/u/roth)\
**Replies:** 2\
**Last updated:** [September 10, 2017, 11:48am UTC](https://community.auth0.com/t/pre-post-registration-hook-how-to-retrieve-the-audience/8134 "2017-09-10T11:48:11Z")

</div>

I’d like to know which audience users are trying to access in order to show them a personalized email verification message. How can I retrieve the audience in a pre/post registration hook? Apparently, adding the info t…

---

## [Does Lock 10 additionalSignUpFields overwrite user\_metadata added in pre-registration hook](https://community.auth0.com/t/does-lock-10-additionalsignupfields-overwrite-user-metadata-added-in-pre-registration-hook/7123)

<div class="topic-metadata">

**Author:** [@zenanbach](https://community.auth0.com/u/zenanbach)\
**Replies:** 8\
**Last updated:** [June 20, 2017, 10:39pm UTC](https://community.auth0.com/t/does-lock-10-additionalsignupfields-overwrite-user-metadata-added-in-pre-registration-hook/7123 "2017-06-20T22:39:55Z")

</div>

I have an app where I would like to: Require a couple of additional fields at signup. Call a pre-registration hook that searches a legacy user database (non-Auth0) and adds to user\_metadata based on results of the old …
