Identity & SSOvendor:auth0Email OTPUnwrapped Magic LinkCarrier SMS DIDCloud KMS TOTP

Automate Auth0 Passwordless OTP, Magic Links & MFA in Playwright

Automate Auth0 Passwordless Email OTPs, Universal Login magic links, SMS codes, and Guardian/TOTP challenges in headless browsers.

Curated Stage 4 Extractor Profile (vendor:auth0)

Extracts 6-digit Auth0 verification/passwordless passcodes and `/passwordless/verify_redirect`, `/u/email-verification`, `/authorize`, and `/lo/verify` magic links.

Matched Sender Domains
auth0.com
Login URL example: https://your-tenant.us.auth0.com/u/login
Filtered Non-Auth Noise
  • Auth0 tenant billing or status digests without auth context

1. 60-Second Gmail & Outlook Auto-Forwarding Filter

Don't want to change your existing account email on Auth0? Keep your corporate inbox on Auth0 and forward only verification emails to <identity-slug>@in.sentryrelay.com. Sentry Relay's Stage 2 unwrapper preserves the original Auth0 sender header automatically (full setup guide).

# Paste into Gmail -> Settings -> Filters -> Create a new filter ("Has the words")
from:(auth0.com) ("verification code" OR "passwordless" OR "passcode" OR "verify")

# Action: Forward it to -> <your-identity-slug>@in.sentryrelay.com

2. Copy-Paste Auth0 2FA Automation Snippets

Choose your browser automation stack below. All snippets resolve codes in <200ms with Upstash Redis 15-second lookback protection so arrived-before-wait race conditions never fail a run.

import { test, expect } from '@playwright/test';
import { SentryRelay } from '@sentryrelay/sdk';

const relay = new SentryRelay({ apiKey: process.env.SENTRY_RELAY_API_KEY! });

test('Auth0 Passwordless Email OTP or Magic Link sign-in', async ({ page }) => {
  await page.goto('https://your-app.com/login');
  await page.fill('input[name="email"], input#username', 'auth0-bot@in.sentryrelay.com');
  await page.click('button[type="submit"]');

  const auth = await relay.wait('auth0-bot', { timeout: 30 });
  if (auth.event?.magicLink) {
    await page.goto(auth.event.magicLink);
  } else if (auth.event?.otpCode) {
    await page.fill('input[name="code"]', auth.event.otpCode);
    await page.click('button[type="submit"]');
  }

  await expect(page).toHaveURL(/your-app\.com/);
});

3. Auth0 Production Gotchas

Frequently Asked Questions

What if our target SaaS uses Auth0 with a custom domain?
Stage 4 recognizes Auth0 URL paths and subject patterns even via custom domains, and Stage 5 heuristics extract generic OTPs and verification links from any sender.
Can we test Auth0 MFA (TOTP) alongside Passwordless?
Yes. Store the Auth0 MFA Base32 secret via srelay totp add and call relay.totp.get() right after the primary login step.
Does Auth0 SMS MFA work with Sentry Relay DIDs?
Yes. Assign a dedicated US carrier Telnyx DID to your Identity and wait with channel: "sms".
Provision an Isolated Identity for Auth0

Start free in 3 minutes with @in.sentryrelay.com email + Simulated SMS, or attach a dedicated US carrier Telnyx SMS DID starting on Builder ($29/mo) and Growth/Pro ($79/mo).