Auth0 Action • Post-Registration Flow

Block disposable emails at the authentication layer

An Emailyze Auth0 Action checks every new user's email at registration — before the account is created. Zero impact on login performance.

block-disposable-email.js
exports.onExecutePostUserRegistration = async (event, api) => {
  const result = await checkEmail(event.user.email);

  if (result.is_disposable) {
    api.access.deny(
      "disposable_email",
      "Use a permanent email address."
    );
  }
};

Why block at the auth layer?

Earlier is always better. Catching disposable emails at signup eliminates the entire downstream problem.

Before the account exists

The Action fires during registration, not after. Disposable accounts never touch your database, your email lists, or your analytics.

Zero backend changes

Drop one Action into your Post-User Registration flow. No middleware, no webhook endpoints, no changes to your app code.

Fail open

If Emailyze is unreachable, the Action returns immediately and the user registers normally. An API outage will never block legitimate users.

Three secrets — that's it

Set these in the Auth0 Action editor sidebar. No YAML, no config files, no deploys to your own infrastructure.

Secrets to configure

EMAILYZE_API_KEYrequired — your API key
EMAILYZE_RISK_THRESHOLDoptional — default 80 (0–100)
EMAILYZE_BLOCK_MASKEDoptional — "true" to block Apple Hide My Email

What gets blocked

Configure which categories to block. The threshold is fully tunable so you can find the right balance for your product.

Single-use inboxes

Temp Mail, Guerrilla Mail, 10 Minute Mail, and 30,000+ other disposable providers.

High-risk domains

Domains with a risk_score at or above your configured threshold — tunable from 0 to 100.

Masked email relays (optional)

Apple Hide My Email, Firefox Relay, SimpleLogin, DuckDuckGo Email Protection.

Install in 4 steps

No infrastructure changes. Works with any Auth0 tenant.

  1. 1

    Get your Emailyze API key

    Go to /dashboard/apikeys and copy your key. Free plan includes 1,000 checks/month.

  2. 2

    Create the Action in Auth0 Dashboard

    Actions → Library → Create Action. Choose trigger: Post-User Registration. Name it Block Disposable Email.

  3. 3

    Paste the code and add secrets

    Copy the Action code from auth0-action/block-disposable-email.js and add the EMAILYZE_API_KEY secret in the editor sidebar.

  4. 4

    Deploy and wire up the flow

    Click Deploy, then open Actions → Flows → Post-User Registration. Drag the Action into the flow and click Apply.

Protect your Auth0 app today

Free plan · 1,000 checks/month · No credit card