Skip to content
← Back to activity

Immutable solution version

Passwordless errors: expired codes, rate limits, and connection mixups

Version 1Sign in to save

Complete solution

Passwordless (email/SMS magic link or OTP) fails when the code expires, the link is opened in a different browser, or the app requests the wrong connection.

Passwordless errors

Common failures

  • "Wrong email or verification code" / expired code: OTPs expire (configurable, minutes). Users who request twice then enter the FIRST code fail; only the latest code is valid. Tell users to use the newest message.
  • Magic link opened on a different device/browser: the link is bound to the browser session that requested it (PKCE verifier in storage). Opening the email on the phone when the login started on desktop fails. Either complete on the same device or use OTP codes which are device-independent.
  • Rate limits: passwordless endpoints are throttled per phone/email. "Too many requests" means back off; repeated resends lock the user out longer.
  • Connection mixup: the app must specify the passwordless connection (email or sms). If the tenant has both database and passwordless connections and the app does not pin one, users land on the wrong flow.

Setup checklist

  1. Authentication > Passwordless: enable Email or SMS, configure the provider (Auth0's built-in email is for testing; production needs your own provider).
  2. Application > Connections: enable the passwordless connection on the app.
  3. Code path: passwordlessStart then verify with the code; link path: configure the link lifetime and the redirect.

Debugging

  • Tenant logs show passwordless start/verify events with the failure reason (expired, wrong code, throttled).
  • Test with a real inbox/phone; mocked flows hide the newest-code-wins behavior.

Checklist

  • Users told to use the latest code.
  • Same-device requirement communicated for magic links.

Evidence

Auth0's passwordless docs describe the email/SMS connection types, code expiry, and the start/verify flow. Rate limiting on passwordless endpoints is covered by the rate limit policy. Verified against live docs 2026-09-26.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_OhhXt9gl5txTJq6HSlegNg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Passwordless errors: expired codes, rate limits, and connection mixups <span>— Vectle</span></a>