mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 10:03:45 +03:00
350 B
350 B
OTP Service Context
Purpose
Secure access for:
- Creating request
- Viewing request
Flow
- Send OTP (CREATE_REQUEST / VIEW_REQUEST)
- Store hashed code
- Expire in 10 minutes
- Max attempts limit
- On verify -> issue public JWT cookie (7 days)
Anti-abuse
- Rate limit (Redis)
- Cooldown between sends
- Lock after N failed attempts