email-and-password-best-practices
Secure Better Auth Email and Password Flows
Incomplete authentication settings can expose accounts or disrupt password recovery. This skill provides Better Auth guidance for verification, resets, policies, sessions, and hashing.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "email-and-password-best-practices" from https://skillstore.io/skills/better-auth-email-and-password-best-practices.md and its manifest at https://skillstore.io/api/skills/better-auth-email-and-password-best-practices/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "email-and-password-best-practices". Create a secure email verification checklist for a new Better Auth application.
Expected outcome:
- Require verified email before email and password sign-in.
- Connect verification links to the approved email service.
- Use an absolute callback URL on an approved application origin.
- Test sign-up, delivery, expiration, and successful verification.
Using "email-and-password-best-practices". Recommend password reset safeguards for a production application.
Expected outcome:
- Use short-lived, single-use reset tokens.
- Return consistent responses for existing and unknown accounts.
- Revoke active sessions after a successful reset.
- Monitor background email delivery without logging personal data.
Using "email-and-password-best-practices". Assess changing the password hash algorithm from scrypt to Argon2id.
Expected outcome:
Existing scrypt hashes may become incompatible with the new verifier. Define and test a migration strategy before changing production authentication.
Security Audit
Low RiskThe audit confirmed one medium-risk instruction that executes the latest Better Auth CLI package without version pinning. It also found a low-severity privacy risk because a reset hook logs user email addresses. The other 46 static alerts are false positives from Markdown, TypeScript examples, placeholder URLs, and ordinary API names.
Confirmed security concerns (1)
Capability review items (1)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
โ๏ธ External commands (39)
๐ Network access (4)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/better-auth-email-and-password-best-practices/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/better-auth-email-and-password-best-practices?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/better-auth-email-and-password-best-practices?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/better-auth-email-and-password-best-practices/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/better-auth-email-and-password-best-practices.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
better-auth. (2026). email-and-password-best-practices security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/better-auth-email-and-password-best-practices/audits/5BibTeX citation
@techreport{better-auth-better-auth-email-and-password-best-practices-2026,
author = {better-auth},
title = {email-and-password-best-practices security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/better-auth-email-and-password-best-practices/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "email-and-password-best-practices security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "better-auth"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/better-auth-email-and-password-best-practices/audits/5"
identifiers:
- type: other
value: "skillstore:better-auth-email-and-password-best-practices:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Launch Credential Authentication
Configure verified email sign-up, sign-in, password rules, and secure callback URLs for a Better Auth application.
Review Account Recovery
Assess reset email delivery, token expiry, anti-enumeration behavior, and session revocation before production release.
Prepare Serverless Email Tasks
Connect Better Auth background authentication emails to the deployment platform's task lifecycle.
Try These Prompts
Configure Better Auth email and password sign-up for [application]. Require email verification, use [mail provider], and explain every required setting.
Design a Better Auth password reset flow for [application]. Use [expiry] minutes, absolute redirects, background email delivery, and session revocation.
Review this Better Auth configuration: [configuration]. Identify verification, enumeration, token, redirect, password policy, logging, and session risks. Recommend prioritized changes.
Assess migration from [current hash] to [target hash] for [user count] accounts. Explain compatibility risks, required testing, and decisions needing external migration guidance.
Best Practices
- Apply server-side validation even when client-side validation improves immediate feedback.
- Keep verification and reset URLs absolute, trusted, and restricted to approved application origins.
- Revoke sessions after password resets and exclude emails, passwords, and tokens from logs.
Avoid
- Running mutable latest package releases without pinning and reviewing the selected version.
- Logging account identifiers, passwords, or authentication tokens during verification and reset flows.
- Replacing password verification without a tested migration path for existing hashes.
Frequently Asked Questions
Does this skill send authentication emails?
Does it generate a complete authentication interface?
Which password hash does Better Auth use by default?
Can an existing application change hash algorithms directly?
How long do password reset tokens remain valid?
Should password resets revoke active sessions?
Developer Details
Author
better-authLicense
MIT
Skillstore revision
r2
Version notice
The author did not declare a version.
Ref
8c3e20bba512c392d9b02ee748b18e0b09d4982c
Maintenance freshness
7/24/2026
Usage
3 downloads ยท 43 views
File structure
๐ SKILL.md