Skip to content

email-and-password-best-practices

Email verification, password reset flows, and customizable password policies for Better Auth.

— (0 ratings) 51.9K downloads better-auth
$ npx skills add https://github.com/better-auth/skills --skill email-and-password-best-practices

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Email verification, password reset flows, and customizable password policies for Better Auth.

  • Supports email verification with optional enforcement to block sign-in until verified, plus configurable token expiration and single-use reset tokens
  • Password reset flows with built-in security: background email sending, timing attack prevention, dummy operations on invalid requests, and optional session revocation on reset
  • Configurable password length limits (default 8–256 characters) and custom hashing algorithms via pluggable hash and verify functions
  • Requires absolute callback URLs and sendVerificationEmail / sendResetPassword functions to integrate with your email provider

Quick Start

  1. Enable email/password: emailAndPassword: { enabled: true }
  2. Configure emailVerification.sendVerificationEmail
  3. Add sendResetPassword for password reset flows
  4. Run npx auth@latest migrate
  5. Verify: attempt sign-up and confirm verification email triggers

Email Verification Setup

Configure emailVerification.sendVerificationEmail to verify user email addresses.

import { betterAuth } from "better-auth";
import { sendEmail } from "./email"; // your email sending function

Installs: 51.9K | GitHub stars: 232 | First seen: Feb 10, 2026

Related skills

New

Productivity

lark-docisn’t available in this repository.

lark-doc — an installable skill for AI agents, published by open.feishu.cn/lark-doc.

New • 951.3K
New

Productivity

lark-sharedisn’t available in this repository.

lark-shared — an installable skill for AI agents, published by open.feishu.cn/lark-shared.

New • 950.8K
New

Productivity

lark-driveisn’t available in this repository.

lark-drive — an installable skill for AI agents, published by open.feishu.cn/lark-drive.

New • 950.3K