two-factor-authentication-best-practices

Implement TOTP, OTP, and backup codes with Better Auth.

6|8|Updated May 9, 2024
One-click install
npx skills add https://github.com/GELLIFY/acme-app --skill two-factor-authentication-best-practices-gellify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: two-factor-authentication-best-practices
Source: https://github.com/GELLIFY/acme-app/tree/main/.agents/skills/two-factor-authentication-best-practices
Command: npx skills add https://github.com/GELLIFY/acme-app --skill two-factor-authentication-best-practices-gellify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and enforcement rules for integrating secure two-factor authentication (2FA) into applications, ensuring user account security beyond simple passwords.

Core Features & Use Cases

  • Multi-Factor Options: Supports Time-based One-Time Passwords (TOTP) via authenticator apps, One-Time Passwords (OTP) via email/SMS, and backup codes for recovery.
  • Secure Implementation: Guides on client-side and server-side setup, including QR code generation, code verification, and secure storage of sensitive data.
  • Use Case: A SaaS platform needs to add an extra layer of security for its users. This Skill helps developers implement TOTP, allowing users to scan a QR code with their authenticator app, and provides fallback mechanisms like backup codes for account recovery.

Quick Start

Implement two-factor authentication using the twoFactor plugin with your app name as the issuer.

Frequently Asked Questions about two-factor-authentication-best-practices

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

FAQPage Schema
How do I implement two-factor authentication using the Better Auth framework?

Time-based One-Time Passwords (TOTP) work by generating temporary codes from an authenticator app. This Skill guides TOTP setup via QR codes, along with One-Time Passwords (OTP) sent through email or SMS, and backup codes for recovery.

What is the best way to handle 2FA backup codes and account recovery?

The best way to handle 2FA backup codes is to generate and securely store them during initial setup. This Skill provides fallback mechanisms like backup codes, ensuring users can recover accounts if they lose access to their primary two-factor methods.

Can I use TOTP and OTP alongside trusted devices for user management?

Yes, you can use TOTP and OTP alongside trusted devices. This Skill covers session management, rate limiting, and trusted device configurations to secure credential accounts while maintaining a smooth user management experience.

What are the best practices for disabling 2FA flows in a SaaS platform?

Best practices for disabling 2FA flows involve secure verification before turning off the feature. This Skill addresses credential account security requirements and disabling 2FA flows to ensure user accounts remain protected during downgrades or configuration changes.

Does this 2FA implementation guide cover rate limiting and session management?

Yes, this 2FA implementation guide covers rate limiting and session management. It provides comprehensive enforcement rules for secure two-factor authentication, ensuring robust protection against brute force attacks and session hijacking attempts.