email-and-password-best-practices

Configure Better Auth email and password flows with secure defaults.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides guidance and enforcement rules for implementing secure email and password authentication using Better Auth.

Core Features & Use Cases

  • Email verification setup to ensure users own their emails and prevent fake sign-ups.
  • Enforced email verification and optional on-sign-in re-verification to strengthen account security.
  • Client-side validation alongside server-side checks to improve UX and reduce invalid requests.
  • Password reset flows with customizable sendResetPassword handlers, token expiration, and single-use tokens.
  • Safe password hashing by default with scrypt, plus options to customize with Argon2id if needed.
  • Security hardening notes including timing-attack mitigation, redirect URL validation, and session revocation on reset.

Quick Start

Configure Better Auth with email verification, password reset, and strong hashing using the examples in this skill.

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 in a web app to prevent fake sign-ups?

Secure email verification is implemented using Better Auth to ensure users own their emails. This skill guides you through configuring verification emails, callback URLs, and enforced on-sign-in re-verification to strengthen account security and prevent fake sign-ups.

What's the best way to set up password reset flows with single-use tokens and expiration?

The best way to set up password reset flows is by configuring customizable sendResetPassword handlers with token expiration and single-use tokens. This approach ensures reset tokens expire automatically and can only be used once, while also revoking existing sessions upon reset.

Can I use Better Auth for authentication in serverless environments?

Yes, Better Auth works across serverless and Node environments for building authentication flows. It provides the necessary tools for email verification, password reset, token security, and session management within your serverless web applications.

Does Better Auth support configurable password policies and safe password hashing?

Yes, Better Auth supports configurable password policies and safe password hashing by default using scrypt. You can also customize the hashing algorithm to Argon2id if your application requires a different cryptographic approach.

How do you prevent timing attacks during email and password authentication?

Timing attacks are prevented by implementing safe default messaging and security hardening rules. This skill provides guidance on mitigating timing attacks, validating redirect URLs, and revoking sessions on password resets to protect the authentication flow.