Rename to stealergram, add pyproject.toml, purge em-dashes
- Rename project to stealergram throughout - Add pyproject.toml (replaces requirements.txt split, folds pytest.ini) - Replace all em-dashes with hyphens across all source files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""
|
||||
web/auth.py — JWT signing/verification and bcrypt password helpers.
|
||||
web/auth.py - JWT signing/verification and bcrypt password helpers.
|
||||
|
||||
Tokens:
|
||||
access — HS256, 15 min TTL, payload: {sub, role, type:"access"}
|
||||
refresh — HS256, 7 day TTL, payload: {sub, jti, type:"refresh"}
|
||||
access - HS256, 15 min TTL, payload: {sub, role, type:"access"}
|
||||
refresh - HS256, 7 day TTL, payload: {sub, jti, type:"refresh"}
|
||||
|
||||
Both tokens live in httpOnly SameSite=Strict cookies.
|
||||
The `type` claim prevents an access token being used as a refresh token.
|
||||
|
||||
Reference in New Issue
Block a user