email-and-password-best-practices

Configure Better Auth email/password flows with verification and password resets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams configure robust email/password authentication in Better Auth, covering email verification, password reset flows, and password policies to improve security and user experience.

Core Features & Use Cases

  • Enable email verification to ensure valid user emails.
  • Implement password reset flows and token-based security controls.
  • Enforce password requirements and allow custom hashing strategies for credential storage.

Quick Start

Configure Better Auth with email/password, enable verification and password resets, define password policies, optionally switch to a custom hashing algorithm, and run migrations to validate sign-up and login flows.

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

To configure email verification and password reset flows in Better Auth, you enable the specific built-in options, define token expiry controls, and run migrations to validate the credential recovery workflows.

Can I use a custom hashing algorithm for password storage in Better Auth?

Yes, you can use a custom hashing algorithm for password storage in Better Auth by applying pluggable password hashing configurations to secure user credentials during sign-up and login operations.

What is the best way to enforce secure password policies for user logins?

The best way to enforce secure password policies for user logins is to define specific password requirements within your authentication configuration to validate credential strength and improve overall application security.

How does token expiry work for password reset workflows?

Token expiry for password reset workflows works by applying configurable time limits to the reset tokens, ensuring that expired verification links automatically invalidate to protect credential recovery operations.

Do I need database migrations to enable email and password authentication?

Yes, you need database migrations to enable email and password authentication because running migrations validates the schema updates required to support sign-up, login, and email verification flows.

Why enforce email verification for user sign-up flows?

You enforce email verification for user sign-up flows to ensure valid user emails, prevent fake account creation, and maintain accurate credential security for email-based reset workflows.