home / skills / andrelandgraf / fullstackrecipes / better-auth-emails

better-auth-emails skill

/.agents/skills/better-auth-emails

This skill guides implementing Better Auth emails with verification, password reset, and account management using Resend for reliable user communications.

npx playbooks add skill andrelandgraf/fullstackrecipes --skill better-auth-emails

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
486 B
---
name: better-auth-emails
description: Add email verification, password reset, and account management emails to Better Auth using Resend.
---

# Better Auth Emails

To set up Better Auth Emails, refer to the fullstackrecipes MCP server resource:

**Resource URI:** `recipe://fullstackrecipes.com/better-auth-emails`

If the MCP server is not configured, fetch the recipe directly:

```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/better-auth-emails
```

Overview

This skill adds production-ready email workflows to Better Auth using Resend for reliable delivery. It provides email verification, password reset, and account management templates and wiring that integrate with Better Auth in TypeScript projects. The patterns are built for straightforward installation and customization in full-stack AI web apps.

How this skill works

The skill installs and configures email handlers that trigger on Better Auth events (signup, password reset, profile changes) and sends transactional messages through Resend. It includes ready-made templates, TypeScript integration code, and guidance for wiring the handlers into your authentication flow. If you use the MCP server, the recipe URI supplies the complete resource; otherwise you can fetch the recipe directly via the provided HTTP endpoint.

When to use it

  • You need verification emails for new user signups in Better Auth.
  • You want secure, user-friendly password reset flows with email links.
  • You must notify users about account changes or security events.
  • You want production-ready templates and TypeScript integration for a full-stack AI app.
  • You prefer using Resend for fast, reliable transactional email delivery.

Best practices

  • Use short, mobile-friendly templates and include clear call-to-action links.
  • Protect reset and verification tokens with expiration and single-use checks on the server.
  • Customize templates to match your branding but keep critical security copy consistent.
  • Monitor email events and bounces via Resend to maintain deliverability.
  • Store API keys securely and rotate them periodically; use environment variables in TypeScript.

Example use cases

  • Send email verificationリンク after a user completes registration to confirm their address and enable full account features.
  • Trigger a password reset email with a single-use token when a user requests account recovery.
  • Notify users of suspicious sign-in attempts or when their account details change.
  • Integrate with onboarding flows to send welcome and setup instructions after verification.
  • Automate account deletion confirmations and allow users to reverse accidental requests.

FAQ

Do I need the MCP server to use this skill?

No. The MCP server provides a convenient resource URI, but you can fetch the recipe directly via the public HTTP endpoint and apply the instructions locally.

Is Resend required?

Resend is the recommended provider for the included patterns, but you can adapt the templates and handlers to other transactional SMTP or API providers if preferred.