email-and-password-best-practices

Implement email/password authentication with verification and reset flows.

9|2|Updated Nov 10, 2025
One-click install
npx skills add https://github.com/FindMalek/dukkani --skill email-and-password-best-practices-findmalek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/FindMalek/dukkani/tree/main/.cursor/skills/email-and-password-best-practices
Command: npx skills add https://github.com/FindMalek/dukkani --skill email-and-password-best-practices-findmalek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need a secure, configurable path to implement email/password authentication with verification and password reset capabilities. This guide provides setup and best practices for using Better Auth to handle sign-up, login, and credential security.

Core Features & Use Cases

  • Email verification sending to ensure valid user emails.
  • Password reset flows via email with time-bound tokens.
  • Customizable password hashing and verification, plus optional session revocation after sensitive changes.
  • Guidance for serverless and traditional backends and integration points.

Quick Start

Enable email/password, configure verification and reset handlers, then migrate with the CLI.

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

To implement secure email verification and password reset flows, you configure time-bound tokens sent via email handlers. This ensures valid user emails and enables safe credential recovery for web applications.

What is the best way to hash passwords for authentication in a serverless backend?

For authentication in a serverless backend, the best way to hash passwords is using customizable hashing hooks. This allows you to apply specific hashing strategies and optionally revoke sessions after sensitive credential changes.

Can I configure token lifetimes for password reset emails?

Yes, token lifetimes for password reset emails are fully configurable. The authentication setup supports customizable token expiration durations to enforce time-bound security for credential recovery operations.

Does Better Auth support session revocation after a password change?

Yes, Better Auth supports optional session revocation after sensitive changes like a password reset. This feature secures user accounts by invalidating existing sessions on both serverless and traditional backends.

How do I set up email and password login with Better Auth?

To set up email and password login with Better Auth, you enable the email/password module, configure verification and reset handlers, then execute database migrations using the provided CLI.