← @mortar-kit/auth

resendMailerfunction

import { resendMailer } from '@mortar-kit/auth'

function resendMailer(options: ResendMailerOptions): Mailer

A mailer that sends through Resend. Throws when Resend refuses a message, so the sign-in shows an error instead of waiting for an email that won't come.

Parameters

Returns

Mailer

Example

email({ mailer: resendMailer({ apiKey: process.env.RESEND_API_KEY!, from: 'Site <[email protected]>' }), store });