betterauth-2fa

Implement two-factor authentication with TOTP, email, SMS, backup codes, and device trust.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/vKenjo/ust-something --skill betterauth-2fa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: betterauth-2fa
Source: https://github.com/vKenjo/ust-something/tree/main/.github/skills/betterauth/two-factor
Command: npx skills add https://github.com/vKenjo/ust-something --skill betterauth-2fa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enhances account security by implementing multi-factor authentication mechanisms, protecting against unauthorized access.

Core Features & Use Cases

  • Authentication Enhancement: Supports TOTP apps, email/SMS OTPs, backup codes, and device trust features.
  • Multi-Platform Integration: Works on server-side and client-side environments to enable seamless MFA setup and verification.
  • Use Case: Implement MFA in a web app to require users to verify their identity using a one-time code sent via email or generated by an authenticator app during login.

Quick Start

Configure the plugin with issuer details and OTP options, then enable MFA in your app to add an extra security layer for user accounts.

Frequently Asked Questions about betterauth-2fa

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add two-factor authentication to a web application?

Configure server and client plugins to enable two-factor authentication using TOTP, email, SMS, backup codes, and device trust. This requires users to verify identity with one-time codes during login.

Can I use email OTP instead of TOTP for multi-factor authentication?

Yes, email OTP is supported for multi-factor authentication alongside TOTP, SMS, and backup codes. You can configure the plugin options to send one-time codes via email for user verification during login.

Does two-factor authentication work on both server-side and client-side environments?

Two-factor authentication works on both server-side and client-side environments through multi-platform integration. You configure plugins for both sides to enable seamless MFA setup and verification across web applications.

What is the best way to manage MFA states and backup codes for user accounts?

Manage MFA states and backup codes by configuring the authentication plugin with issuer details and OTP options. This supports easy enabling, verification, and management of multi-factor authentication states for user accounts.

Do I need to configure issuer details to set up TOTP two-factor authentication?

Yes, you need to configure issuer details and OTP options when setting up TOTP two-factor authentication. This configuration is required to generate valid one-time codes through authenticator apps during the login process.