email-and-password-best-practices

Configure email verification, password resets, and hashing policies with Better Auth.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/dotlab-hq/storage-platform --skill email-and-password-best-practices-dotlab-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/dotlab-hq/storage-platform/tree/main/.agents/skills/email-and-password-best-practices
Command: npx skills add https://github.com/dotlab-hq/storage-platform --skill email-and-password-best-practices-dotlab-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and secures email/password authentication by enabling email verification, password resets, and configurable hashing policies to protect user accounts.

Core Features & Use Cases

  • Email verification: ensure users verify emails before sign-in.
  • Password resets: provide secure flows for resetting forgotten passwords.
  • Hashing policies: customize hashing algorithms and token lifetimes to meet security requirements.
  • Use Case: A SaaS app onboarding new customers can require verified emails and password resets to maintain account security.

Quick Start

Enable email/password authentication, configure email verification and password reset flows, and set password hashing 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 for sign-in using Better Auth?

Configure email verification for sign-in by setting up emailVerification handlers within your Better Auth configuration. This ensures users must verify their email addresses before successfully completing the account authentication process.

How do I implement a secure password reset flow for a web application?

Implement a secure password reset flow by configuring the sendResetPassword functionality and managing token expiry policies. This provides a secure mechanism for users to safely regain access when they forget their credentials.

Can I customize the password hashing algorithm in Better Auth?

Yes, you can customize the password hashing algorithm in Better Auth to meet specific security requirements. This allows you to define exactly how user passwords are securely hashed and stored within your web or API backend.

What is the best way to enforce account security for new SaaS onboarding?

The best way to enforce account security during SaaS onboarding is to require verified emails and configure secure password reset flows. This standardizes user authentication and protects new customer accounts from unauthorized access.

How do I manage token expiry for password resets and email verification?

Manage token expiry for password resets and email verification by adjusting the token lifetime settings in your authentication configuration. This ensures security tokens expire appropriately, reducing the risk of malicious token reuse.