feat(deps): T21 implement get_current_user dependency

Add authentication dependency with:
- HTTPBearer for token extraction from Authorization header
- JWT token decoding with decode_access_token()
- User ID extraction from 'sub' claim
- Database user lookup with existence check
- Active user verification
- HTTPException 401 for invalid/expired tokens or inactive users

Used as FastAPI dependency: Depends(get_current_user)

Location: src/openrouter_monitor/dependencies/auth.py
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 13:57:56 +02:00
parent b00dae2a58
commit 1fe5e1b031

Diff Content Not Available