1fe5e1b031867094c3bbf5036422189d75b4504c
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
openrouter-watcher
Applicazione per monitorare l'uso delle api keys di attive in openrouter
Languages
Python
94.3%
HTML
4.7%
Dockerfile
0.3%
JavaScript
0.3%
CSS
0.3%
Other
0.1%