Skip to content

Two-Factor Authentication (2FA) with TOTP #489

@Cedarich

Description

@Cedarich

Labels: Backend, Security, Auth
Complexity: High (200 points) 🔐

Description

Add an extra layer of security by implementing Two-Factor Authentication using Time-based One-Time Passwords (TOTP).

Requirements / Context

  • Use otplib or speakeasy.
  • Flow: Enable 2FA -> Generate Secret -> Verify -> Require on Login.

Acceptance Criteria

  • POST /auth/2fa/generate and POST /auth/2fa/enable.
  • POST /auth/2fa/verify for login.
  • QR code generation for authenticator apps.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions