Auth0 supports Resend as a built-in email provider. Authentication flows depend on reliable delivery for verification codes, password resets, and other crucial emails.Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before connecting Auth0 to Resend, you’ll need:- A verified domain in your Resend dashboard. Auth0 will send from this domain.
- An API key from your Resend dashboard.
Set up the Resend provider in Auth0
In the Auth0 Dashboard, go to Branding > Email Provider, toggle on Use my own email provider, and select Resend. Enter your API key and set the From address to match your verified domain. Click Save to apply the changes.
For the full setup guide, see the Auth0
documentation.
Send emails with Auth0 Actions (optional)
For more control over delivery, like per-organization sender addresses, conditional routing, or custom logic, you can use an Auth0 Action instead. In the Auth0 Dashboard, go to Actions > Library, create a new Custom action.
- Add
resendas a dependency.
- Store your API key as a secret named
RESEND_API_KEY.
Customize Email Templates
To customize the email templates that Auth0 sends out, go to Branding > Email Templates in the Auth0 Dashboard and make your changes to the existing templates. For more advanced templating, consider either React Email or Resend Templates.React Email
Auth0 email templates use Liquid syntax for dynamic variables like{{ user.email }} and {{ url }}. You can author templates with React Email and inject Liquid variables before pasting the rendered HTML into Auth0.
Define your Liquid variables as constants to avoid HTML encoding issues during rendering:
Resend Templates
To use Resend templates with Auth0, define your templates in the Resend Dashboard and reference them in your Custom OAuth Actions. For instance, the following code uses a Resend template with the id oflogin-detected that contains two variables (first_name and ip_address) to be passed in the call. Learn more about Resend templates.
Debugging Email Delivery
When something goes wrong, it’s helpful to see detailed logs across both sides:- Auth0 Logs (Monitoring > Logs) shows send events and any errors raised from the Resend integration.
- Resend Logs show the delivery side: accepted, delivered, opened, bounced.