Luca Sacchi Ricciardi 1fe5e1b031 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
2026-04-07 13:57:56 +02:00
2026-04-07 08:53:55 +02:00
2026-04-07 08:53:55 +02:00

openrouter-watcher

Applicazione per monitorare l'uso delle api keys di attive in openrouter

S
Description
Applicazione per monitorare l'uso delle api keys di attive in openrouter
Readme MIT 296 KiB
Languages
Python 94.3%
HTML 4.7%
Dockerfile 0.3%
JavaScript 0.3%
CSS 0.3%
Other 0.1%