Layer 1 · entry-auth
Entry point — register / login / forgot password
Supabase Auth (email/password + phone OTP tab). DPDP consent via legal/consent-storage.
POST /auth/register · POST /auth/login · POST /auth/forgot-password · GET /auth/me
Gaps (4)
- No captcha after 3 failed logins (spec lockout pattern)
- No 10-attempt account lock with 423 response
- Role selection at register (patient/doctor/pharmacist) not aligned to spec UserRole enum
- Indian phone regex / password-strength rules differ from FastAPI spec