-
Notifications
You must be signed in to change notification settings - Fork 96
feat(routes-f): two-factor authentication setup endpoint #525
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programroutes-fStandalone API route in app/api/routes-f/Standalone API route in app/api/routes-f/
Description
Overview
Implement app/api/routes-f/2fa/route.ts for enabling and managing two-factor authentication.
Scope
GET /api/routes-f/2fa/status— returns current 2FA status for authenticated userPOST /api/routes-f/2fa/setup— initiates TOTP setup, returnsotpauth_uriand QR code dataPOST /api/routes-f/2fa/verify— confirms setup with a valid TOTP codeDELETE /api/routes-f/2fa— disable 2FA (requires current TOTP code)
Acceptance Criteria
- TOTP secret stored encrypted at rest (AES-256)
- 5 backup codes generated on enable, returned once
- Verify enforces a 30-second window ± 1 step
- Route lives exclusively in
app/api/routes-f/2fa/
Notes
Standalone — no dependency on other open issues.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programroutes-fStandalone API route in app/api/routes-f/Standalone API route in app/api/routes-f/