email-and-password-best-practices

Configure secure email and password authentication with Better Auth.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Insecure or inconsistent email and password authentication flows lead to account takeovers and fake sign-ups. This skill provides guidance and enforcement rules for implementing secure email and password authentication using Better Auth.

Core Features & Use Cases

  • Guidance to enable email verification to prevent fake sign-ups and ensure user-owned emails.
  • Configurable password reset flows, token expiration, and optional session revocation on password reset.
  • Security-focused defaults and best practices for production auth systems in web and mobile applications.

Quick Start

Enable email and password authentication with verification and strong password policies using Better Auth.

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 email verification using Better Auth?

Secure email verification in Better Auth requires configuring verification hooks to prevent fake sign-ups and ensure users own their registered emails. This skill provides enforcement guidance to satisfy production requirements for configured verification workflows.

What are the best practices for password reset flows in web backends?

Password reset best practices involve configuring token expiration, validating redirects, and optionally revoking active sessions upon reset. This skill enforces security-focused defaults to protect authentication systems from account takeover attempts.

How does email and password authentication prevent account takeovers?

Email and password authentication prevents takeovers by enforcing strong password policies, secure token expiration, and mandatory email verification. This skill applies safe defaults and session control rules to harden production web and mobile backends.

Can I use these password security policies with mobile application backends?

Yes, these password security policies apply to both web and mobile backends using Better Auth. The skill provides enforcement guidance for token security, session control, and verification suitable for production mobile authentication systems.

Do I need to revoke sessions when a user resets their password?

Revoking sessions on password reset is an optional but recommended security measure. This skill provides configurable guidance for session revocation alongside token expiration and redirect validation to maintain secure session control.

What token security configurations are required for production authentication systems?

Production authentication systems require secure token expiration and redirect validation configurations. This skill enforces these token security requirements along with safe defaults to satisfy production-grade email and password authentication standards.