email-and-password-best-practices

Configure secure email and password authentication with Better Auth.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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 authentication flows are robust.

Core Features & Use Cases

  • Email Verification: Enforces and guides the setup of email verification to prevent fake sign-ups.
  • Password Reset Flows: Details secure password reset mechanisms, including timing attack prevention and token security.
  • Password Hashing: Recommends and shows how to configure strong password hashing algorithms like scrypt or Argon2id.
  • Use Case: Securely implement user sign-up and login for your web application by following these best practices for email verification, password resets, and secure password storage.

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 password reset flows in Better Auth?

Secure password reset flows in Better Auth require timing attack prevention and robust token security to protect user credentials during the recovery process. This Skill provides configuration examples and best practices to enforce these mechanisms.

What is the best way to configure email verification to prevent fake sign-ups?

Configuring email verification requires setting the emailVerification.sendVerificationEmail option to your email sending function. This enforces verification upon registration to successfully block fake sign-ups.

Which password hashing algorithms should I use for user authentication?

For secure user authentication password hashing, you should use strong algorithms like scrypt or Argon2id. This Skill details how to configure these specific hashing algorithms to protect stored credentials.

How does Better Auth handle session revocation and token security?

Better Auth handles token security by applying robust protections during password resets and session management. This Skill guides configuring session revocation to ensure compromised user authentication systems are secured.

Can I prevent timing attacks during the email and password authentication process?

Yes, you can prevent timing attacks during the email and password authentication process by implementing specific password reset flow configurations. This Skill provides the necessary best practices to mitigate these vulnerabilities.