email-and-password-best-practices

Configure email verification, password reset, and hashing for Better Auth authentication.

Updated Jan 4, 2024
One-click install
npx skills add https://github.com/zeis974/TaxDOM --skill email-and-password-best-practices-zeis974
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-and-password-best-practices
Source: https://github.com/zeis974/TaxDOM/tree/main/apps/dashboard/.agents/skills/email-and-password-best-practices
Command: npx skills add https://github.com/zeis974/TaxDOM --skill email-and-password-best-practices-zeis974

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure email verification, implement password reset flows, set password policies, and customise hashing algorithms for Better Auth email/password authentication. Use when users need to set up login, sign-in, sign-up, credential authentication, or password security with Better Auth.

Core Features & Use Cases

  • Email verification to ensure valid user emails during sign-up.
  • Password reset flows with secure token handling and user notification.
  • Customizable password policies and hashing algorithms for stronger security.
  • Use Case: Teams can enforce verified credentials and secure sign-in across applications.

Quick Start

Enable email/password authentication, configure verification and password-reset settings, run the migration, and test sign-up verification.

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 configure email verification for sign-up flows?

Email verification ensures valid user emails during sign-up by sending verification messages. You configure verification email settings, enable the feature, run database migrations, and test the sign-up verification process to validate user credentials securely.

How do I implement a secure password reset flow with token expiry?

Password reset flows use secure token handling and user notification. You configure reset token generation and token expiry settings, allowing users to safely reset forgotten credentials while maintaining session revocation capabilities for invalidated logins.

Can I customize password hashing algorithms for credential authentication?

Customizable password hashing algorithms support stronger credential security. You can provide custom hash and verify functions to apply specific hashing algorithms, enforcing stronger password policies for user authentication across web applications.

Does this approach support session revocation for email/password login?

Session revocation is supported as an optional configuration for email/password login. It allows you to invalidate active user sessions during credential changes or security events, ensuring secure session management alongside password reset and verification.

What's the best way to enforce password policies for web app authentication?

Enforcing password policies involves configuring customizable rules for password security during sign-up and credential updates. This approach ensures users create strong passwords, integrating directly with email/password authentication flows for robust access control.

Do I need database migrations to set up email and password authentication?

Database migrations are required to set up email/password authentication. Running the migration creates the necessary schema changes to support verification tokens, password reset flows, and user credential storage before testing sign-up verification.