email-and-password-best-practices

Configure secure email and password authentication with Better Auth.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/tylrd/homeschooltracker --skill email-and-password-best-practices-tylrd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/tylrd/homeschooltracker/tree/main/.agents/skills/email-and-password-best-practices
Command: npx skills add https://github.com/tylrd/homeschooltracker --skill email-and-password-best-practices-tylrd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides essential guidance and enforcement rules for implementing secure email and password authentication, ensuring user data protection and a robust sign-in experience.

Core Features & Use Cases

  • Email Verification: Enforces and guides the setup of email verification to prevent fake sign-ups and confirm user email access.
  • Password Reset Flows: Details secure password reset mechanisms, including timing attack prevention, token security, and session revocation.
  • Password Hashing: Explains the default scrypt hashing and how to implement custom algorithms like Argon2id for enhanced security.
  • Client-Side Validation: Recommends and explains the importance of client-side validation for improved UX and reduced server load.

Quick Start

Configure email verification by setting emailVerification.sendVerificationEmail to your email sending function.

Frequently Asked Questions about email-and-password-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure email verification in Better Auth to prevent fake sign-ups?

Configure email verification in Better Auth by assigning your email sending function to the `emailVerification.sendVerificationEmail` setting, which enforces email access confirmation and prevents fake sign-ups.

What's the best way to implement a secure password reset flow with Better Auth?

A secure password reset flow with Better Auth requires implementing timing attack prevention, securing reset tokens, and enforcing session revocation to protect user accounts during the reset process.

How does Better Auth handle password hashing, and can I use Argon2id?

Better Auth handles password hashing using the default `scrypt` algorithm, but allows you to implement custom hashing algorithms like Argon2id for enhanced password security and data protection.

Why is client-side validation important for email and password authentication?

Client-side validation is important for email and password authentication because it improves user experience by catching input errors early and reduces server load by preventing invalid requests from reaching the backend.

Does Better Auth support timing attack prevention for password reset tokens?

Better Auth supports timing attack prevention for password reset tokens by detailing secure reset mechanisms that protect against timing vulnerabilities and ensure proper token security during the authentication flow.