Sign-up and auth

Auth0 integration

An Auth0 Action on the Pre User Registration trigger checks the email address of every new database or passwordless sign-up and stops the ones you do not want, by default addresses that cannot receive mail and throwaway inboxes. When a check cannot be made, the sign-up goes through as if the Action were not there.

Read the full setup guideGet an API key

  • Setup guide
  • One file, pasted into the Action editor

Action secretsPre User Registration

Secrets
EV_API_KEY         your API key (required)
EV_REGION          eu, for EU data residency (optional)
EV_STOP_STATUSES   invalid,disposable  (the default)
EV_DENY_MESSAGE    your own wording (optional)

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Apps that sign people up through Auth0 database or passwordless connections and want an address that cannot receive mail, or a throwaway inbox, turned away before the account exists.
You need
An Auth0 tenant where you can create Actions, sign-ups through a Database or Passwordless connection (Auth0 runs this trigger only for those), and an API key made for it, with a daily credit cap.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses and test addresses on sandbox.email-validation.org.
Full guide
Read the full setup guide

Typical uses.

  • Stop dead addresses

    An invalid result stops the sign-up with a message the sign-up form shows, and adds Did you mean …? when the API suggests a correction.

  • Keep throwaway inboxes out

    Disposable addresses are stopped by default, with their own message asking for a permanent address.

  • Watch before you stop

    Set EV_STOP_STATUSES to none and the Action stops nothing: it writes each result to its logs, so you can see what it would do first.

Set it up. 4 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download the Action

    It is not on a marketplace: download email-validation.js from the guide. It is the whole Action, one file.

  2. Create the Action

    In the Auth0 dashboard, open Actions, Library, Create Action, Build from scratch, with the trigger Pre User Registration and the runtime Node 22. Replace the editor’s code with the file.

  3. Add your key and deploy

    Add the secret EV_API_KEY with your API key, then Deploy. Then open Actions, Triggers, pre-user-registration, drag the Action into the flow and Apply.

  4. Try it

    Sign up with no_mailbox@sandbox.email-validation.org: it is stopped, at no cost. Never sign up with a test address that goes through, such as accepted@sandbox.email-validation.org: Auth0 would mail it, and the bounce hurts your sender.

Good to know.

  • Sign-ins through Google, other social connections and enterprise connections are not checked: Auth0 runs Pre User Registration only for database and passwordless sign-ups.

  • The Action waits at most a few seconds and never retries. With no answer in time, a wrong key, no credits or any error, the sign-up goes through and the log line holds the reason, never the address.

  • An unknown result caused by our side, a timeout or an internal error, never stops a sign-up, whatever you choose to stop.

  • The Action sends only the email address, to our US or EU host: not the person’s name or IP address.

Connect Auth0.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC