better-auth/skills · Official

two-factor-authentication-best-practices

All-time #758 Trending #1077 Hot #3599 First seen Feb 10, 2026
8-week activity · all time api

Installation

$ npx skills add https://github.com/better-auth/skills

Summary

  • Multi-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.
  • Supports three verification methods: authenticator apps (TOTP with QR codes), email/SMS codes (OTP), and single-use backup codes Handles complete 2FA sign-in flows with automatic session management, temporary 2FA cookies, and trusted device tracking with configurable expiration Built-in security features including rate limiting (3 requests per 10 seconds), encryption at rest for secrets and backup codes, and constant-time code comparison Configurable code parameters: TOTP digits (6 or 8), OTP validity period, backup code count and length, and custom encryption for OTP storage

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Security audits

Partner security reviews for this skill.

agent-trust-hub SAFE

Analyzed Mar 3, 2026

This skill provides safe and standard implementation guidelines for two-factor authentication using the Better Auth library. It includes configuration examples, client-side setup, and security best practices without any malicious patterns detected.

snyk LOW

Analyzed Mar 3, 2026

No issues detected.

socket Score 0.9000 · 0 alerts

Analyzed Mar 18, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from better-auth/skills.

npx skills add https://github.com/better-auth/skills

Browse all from better-auth/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 216
Default branch main
Open issues 1
Status Active

History

  1. First seen on skills.sh
  2. First recorded snapshot · 29,800 installs