Back to skills

emailAndPassword

security

Handles email/password authentication for Better Auth, covering sign-up, sign-in, email verification, password reset flows, and password hashing configuration. Supports policies like minimum length, t

Setup & Installation

npx skills add https://github.com/better-auth/emailAndPassword --skill emailAndPassword
or paste the link and ask your coding assistant to install it
https://github.com/better-auth/emailAndPassword
View on GitHub

What This Skill Does

Handles email/password authentication for Better Auth, covering sign-up, sign-in, email verification, password reset flows, and password hashing configuration. Supports policies like minimum length, token expiry, and session revocation on reset. Hashing defaults to scrypt but can be swapped for Argon2id or any custom algorithm. Wiring up password reset flows, email verification gates, and hashing policies from scratch involves non-trivial timing-attack mitigations and token lifecycle management that this handles out of the box.

When to use it

  • Working with emailAndPassword functionality
  • Implementing emailAndPassword features
  • Debugging emailAndPassword related issues