email-and-password-best-practices

Configure secure email and password authentication with Better Auth.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/masakinihirota/vns-masakinihirota-better-old --skill email-and-password-best-practices-masakinihirota
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/masakinihirota/vns-masakinihirota-better-old/tree/main/.agent/skills/email-and-password-best-practices
Command: npx skills add https://github.com/masakinihirota/vns-masakinihirota-better-old --skill email-and-password-best-practices-masakinihirota

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 is protected and the authentication process is robust.

Core Features & Use Cases

  • Email Verification: Enforces email verification to prevent fake sign-ups and ensure user email validity.
  • Password Reset Flows: Guides through setting up secure password reset mechanisms with built-in timing attack prevention and token security.
  • Password Hashing: Details the default scrypt hashing and options for custom algorithms like Argon2id.
  • Use Case: Implementing a new user registration system that requires email verification before a user can log in, and ensuring password reset links are secure and expire appropriately.

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 implement secure email verification to prevent fake sign-ups?

Secure password reset flows require built-in timing attack prevention and token security. This mechanism ensures password reset links are secure, valid, and expire appropriately to protect user accounts from unauthorized access.

What is the best way to hash passwords using scrypt or Argon2id?

Password hashing secures credentials using the default `scrypt` algorithm or custom options like `Argon2id`. Implementing these hashing algorithms ensures robust protection of user passwords during the authentication process.

How do I configure Better Auth for mandatory email verification before login?

Configuring mandatory email verification requires setting `emailVerification.sendVerificationEmail` to your email sender. This enforces email validity, ensuring a user must verify their email before successfully logging in.

How do I prevent timing attacks during the password reset process?

Preventing timing attacks during password reset involves implementing secure flows with built-in timing attack prevention. This ensures consistent response times and secures reset tokens against malicious exploitation.

Does Better Auth support callback URL security for email verification?

Better Auth supports callback URL security to protect email verification and password reset flows. Configuring these callbacks correctly ensures redirection targets remain safe from malicious manipulation.