In short.
Email and Password Best Practices is a skill for developers configuring Better Auth authentication, but its examples leave email delivery, platform integration and version compatibility to the developer. It explains verification requirements, reset tokens, optional session revocation and custom password hashing. The examples were not executed. The supplied source does not establish supported Better Auth versions, costs or licence terms.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is better-auth/emailAndPassword in better-auth/skills at revision 20c9e88a5c007461a703f1c213572b073196113e, including its files and licence notices beside or above it. The supplied manifest identifies only better-auth/emailAndPassword/SKILL.md and declares complete selected-scope coverage. No separate supporting files or licence notices are supplied, so their contents and applicable rights remain unknown. Better Auth implementation code, dependency code and application-specific integrations are outside the available evidence. Nothing was executed; runtime compatibility, migrations, email delivery and security behaviour remain unverified.
The overview
Identity
The resource is better-auth/emailAndPassword/SKILL.md in the better-auth/skills repository. Its declared skill name is email-and-password-best-practices. It supplies instructions and TypeScript configuration examples for Better Auth email/password authentication.
Assessment
This is a useful implementation reference for an application already using Better Auth. It brings account verification, recovery and password storage settings into one focused file. Adoption still requires assembling the separate snippets, implementing email delivery and checking compatibility with the application's installed release. It provides no complete application or execution results.
Users
The skill suits developers adding registration, login or password recovery to a Better Auth application. Beginners need enough JavaScript or TypeScript knowledge to connect asynchronous callbacks and application routes. Experienced developers get focused references for reset expiry, session revocation, serverless background tasks and custom hashing. Installation instructions for loading the skill into a particular assistant are not supplied.
Capabilities
The file covers enabling email/password authentication, sending verification messages and requiring verification before email/password sign-in. It also covers reset-email callbacks, requesting a reset through server or client APIs, an optional post-reset hook, reset-token expiry, revoking sessions after a reset and configurable password length limits.
For password storage, it describes the default scrypt implementation and provides custom hash and verify callbacks using Argon2id. It also recommends client-side validation and absolute callback URLs, including the origin, for sign-up and sign-in requests.
Using it
Requirements
The examples assume an application importing betterAuth from better-auth, an application-provided sendEmail function and configured server or client authentication access. The serverless example needs a platform-specific background-task mechanism. Custom Argon2id hashing adds the @node-rs/argon2 dependency.
Supported Better Auth versions, framework compatibility, database configuration and runtime requirements are not specified. The file describes default scrypt hashing as Node.js native, but does not establish compatibility across other runtimes.
Mechanism
Better Auth calls configured email hooks with user information, a full link and a token. The application sends the message. According to the file, requireEmailVerification blocks unverified email/password sign-ins and causes another verification email on each such attempt. A reset request triggers sendResetPassword; reset tokens are described as single-use with a default lifetime of one hour.
Password hashing can be replaced through custom hash and verify functions. The Argon2id example uses 64 MiB of memory, three iterations, four parallel lanes and a 32-byte output. These are example settings; their performance and suitability for a particular deployment were not assessed.
Setup
The quick start directs developers to enable emailAndPassword, configure sendVerificationEmail and sendResetPassword, run npx auth@latest migrate and check whether sign-up triggers verification email. These are source instructions; none were executed.
The configuration fragments need to be combined into the application's configuration. Email/password enablement appears separately from some feature examples. The migration command selects a latest release without pinning a version, so its compatibility and intended database changes need checking before use.
Example
For an application that requires verified email addresses and invalidates existing sessions after password recovery, the relevant settings are enabled: true, requireEmailVerification: true and revokeSessionsOnPasswordReset: true, together with working verification and reset email hooks. The file also shows resetPasswordTokenExpiresIn: 1800 for a 30-minute reset window and password length settings of 12 to 256 characters.
The application can call authClient.requestPasswordReset with an email address and a redirectTo value pointing to its reset page. Implementing that page, delivering the message and confirming the resulting behaviour remain application work; this scenario was not executed.
Assessment & evidence
Limitations
The file claims protections against account-enumeration and timing attacks through background sending, dummy operations and consistent responses. Their implementation and effectiveness were not assessed by execution.
The reset-email example uses void sendEmail(...), so that callback does not await delivery or demonstrate handling delivery failures. Its separate background-task example depends on a platform-provided waitUntil implementation. Reliable completion of the detached email operation is not established by these snippets.
The skill does not demonstrate a complete reset interface, specify redirect restrictions or provide automated tests. It explicitly warns that switching hashing algorithms can prevent users with existing password hashes from signing in without a migration strategy.
Reasoning
The most consequential configuration choices concern verified access, account recovery and existing sessions. Requiring verification changes who can sign in; session revocation changes whether older sessions survive a password reset. These settings deserve explicit application decisions.
Custom hashing introduces additional dependency and migration work. The supplied material offers no benchmark or comparative security assessment establishing that its Argon2id settings are the right choice for a particular deployment.
Alternatives
The examples can also serve as a manual configuration reference. Within the implementation, the file presents built-in scrypt and custom hashing through callbacks, illustrated with Argon2id. It does not compare other authentication libraries, other skills or passwordless approaches, so their relative suitability is unknown.
Evidence
The original file is available at the pinned source address [https://raw.githubusercontent.com/better-auth/skills/20c9e88a5c007461a703f1c213572b073196113e/better-auth/emailAndPassword/SKILL.md]. The supplied file SHA-256 is 70591495def0161b5adec5c697dd7740b75e80b16526654beff51f5611098e0a.
The available evidence consists of the complete SKILL.md text and its source metadata. It supports descriptions of the instructions and examples, but provides no execution traces, delivery results, benchmarks or independent security verification.
Access & freshness
Costs
The supplied source gives no price for the skill and no operating-cost estimate. Email delivery, application hosting and any assistant used to load the skill may introduce costs, but providers, usage levels and prices are unspecified. Hashing performance and resource costs were not measured.
Rights
No licence text or copyright notice is included in the supplied evidence. Permissions to copy, modify or redistribute the skill and any attribution requirements are therefore unknown. The repository location alone does not establish those permissions.
Freshness
The supplied copy was captured on 2026-11-15 at 23:48:08.297 UTC from Git revision 20c9e88a5c007461a703f1c213572b073196113e. The file's publication date, last-edit date and intended Better Auth release are unknown. Capture time does not establish compatibility with a developer's installed version.
Actions
Before implementation, confirm that the named options match the installed Better Auth release and inspect the intended migration changes. Supply email delivery, connect background work to the hosting platform and build the recovery interface.
Verify sign-up email delivery, blocked unverified sign-in, reset-token expiry and reuse, delivery failures and session revocation in the application. Plan compatibility with existing hashes before changing algorithms. Establish licence terms before copying or redistributing the skill.
