Send Auth0 transactional emails through Resend using the official integration.
Authentication at scale is a difficult challenge, and Auth0 has made it approachable for teams of every size. Auth0 includes a built-in email provider, but also supports custom providers.
Today, Auth0 adds Resend as a supported email provider.
We’re excited to bring the power and simplicity of Resend to our customers. This partnership makes it incredibly easy for developers to level-up their email delivery, whether they need a quick five-minute setup or a fully customized solution.
Crucial emails, like verification codes, password resets, and more, need to be delivered to inboxes quickly and reliably. With the Resend connector, you can start sending these emails in just a few minutes.
Prefer a video walkthrough?
Before connecting Auth0 to Resend, you'll need two things:
In the Auth0 Dashboard, go to Branding > Email Provider, toggle on Use my own email provider, and select Resend.
To test that it's working, click Send Test Email. The email should be sent, and will also appear in your Resend dashboard.
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, and add resend as a dependency. Store your API key as a secret named RESEND_API_KEY.
Here's a working example that sends a security alert on first login:
const { Resend } = require('resend');exports.onExecutePostLogin = async (event, api) => {const resend = new Resend(event.secrets.RESEND_API_KEY);if (event.stats.logins_count === 1) {await resend.emails.send({from: 'Security <security@yourdomain.com>',to: event.user.email,subject: 'New login detected',html: `<p>Hi ${event.user.name}, a new login was detected from ${event.request.ip}.</p>`,});}};
Deploy it by adding the action to the Post Login trigger under Actions > Triggers.
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 our guides on React Email or Resend Templates within Auth0.
Check out the Auth0 docs for the full setup guide.
We're excited to see what you build with Resend and Auth0!