email-and-password-best-practices

Configure email verification, password reset flows, and password policies for Better Auth.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Prathamesh-chougale-17/gatekeeper --skill email-and-password-best-practices-prathamesh-chougale-17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/Prathamesh-chougale-17/gatekeeper/tree/main/.agents/skills/email-and-password-best-practices
Command: npx skills add https://github.com/Prathamesh-chougale-17/gatekeeper --skill email-and-password-best-practices-prathamesh-chougale-17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing user authentication across applications requires reliable email verification, robust password reset flows, and consistent password policies. This Skill enables teams to configure email verification, password reset, and hashing strategies for Better Auth without custom boilerplate.

Core Features & Use Cases

  • Email verification: ensure users own their email addresses before signing in.
  • Password reset flows: securely generate, send, and handle password reset tokens.
  • Password policy customization: enforce length, complexity, and hashing algorithm options for stored credentials.
  • Use Case: onboarding new users in a multi-tenant app with configurable security for each organization.

Quick Start

Enable email/password, configure sendVerificationEmail, and add resetPassword handling in your Better Auth setup, then run migration to apply verification and password-reset policies.

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 in Better Auth, enable the email/password plugin, define the sendVerificationEmail and resetPassword handlers, then run migrations to apply the token expiration and verification policies to your database schema.

What are the best practices for enforcing a password policy and hashing algorithm in authentication?

Best practices for password policy and hashing involve enforcing length and complexity rules while selecting a strong hashing algorithm for stored credentials. This Skill lets you customize these constraints directly within Better Auth to secure user sign-in flows.

Does Better Auth support configurable token expiration for password resets?

Yes, Better Auth supports configurable token expiration for password resets. This Skill allows you to define token lifespans and handle the secure generation and sending of reset tokens without writing custom boilerplate code.

Can I customize email/password authentication for a multi-tenant app?

You can customize email/password authentication for a multi-tenant app using this Skill. It enables configurable security policies, including email verification and password reset handling, tailored for each organization during user onboarding.

Why do I need email verification before allowing users to sign in?

Email verification is needed before sign-in to ensure users actually own their provided email addresses. This process prevents fraudulent account creation and is a core feature of the email/password authentication configuration handled by this Skill.