Files
hapi/.scratch/mvp-issues/03b-jwt-authentication-middleware.md
T
2026-11-17 14:39:40 -05:00

15 lines
641 B
Markdown

# 03b: JWT Authentication Middleware
**What to build:** JWT authentication middleware with token validation, supporting multiple signers and future OAuth.
**Blocked by:** 03a (Layered FastAPI App Structure)
**Status:** ready-for-agent
- [ ] JWT middleware implemented (token extraction, validation, user injection)
- [ ] Token generation function (`create_token(user_id, expires_in)`)
- [ ] Token validation with secret key (configurable via environment)
- [ ] `/auth/login` endpoint implemented (returns JWT token)
- [ ] `/auth/logout` endpoint implemented (marks token as revoked)
- [ ] Test client configured with auth header fixture