email-and-password-best-practices

Configure email verification and password authentication with Better Auth.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and enforce secure email verification, password reset flows, and password policies for authentication systems powered by Better Auth.

Core Features & Use Cases

  • Implements email verification via emailVerification.sendVerificationEmail to confirm user emails.
  • Provides password reset flows with sendResetPassword and token-based security.
  • Supports configurable password policies (min/max length) and customizable hashing with hash/verify functions.

Quick Start

Enable email/password authentication, configure verification and reset handlers, and apply password policy settings to deploy a secure sign-in experience.

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?

Configure email verification in Better Auth by implementing the emailVerification.sendVerificationEmail hook and enabling requireEmailVerification to restrict access until users confirm their email address.

What's the best way to set up password reset flows with Better Auth?

Set up password reset flows in Better Auth by configuring the sendResetPassword handler with token-based security and defining token expiry settings to ensure temporary, secure credential recovery.

Can I use custom password hashing functions with Better Auth authentication?

Yes, Better Auth supports pluggable password hashing by allowing you to define custom hash and verify functions, letting you integrate your preferred cryptographic algorithms for secure credential storage.

How do I enforce password policies like minimum length for user signup?

Enforce password policies during user signup by configuring minimum and maximum length constraints within Better Auth settings, ensuring all created credentials meet your specified security requirements before validation.

Does Better Auth support requiring email verification before login?

Yes, Better Auth supports requiring email verification before login by enabling the requireEmailVerification setting, which prevents unverified users from authenticating until they click the verification link.

Why do I need token expiry settings for password reset endpoints?

Token expiry settings are needed for password reset endpoints to invalidate unused reset links after a defined period, preventing replay attacks and ensuring only recent requests can change credentials.