Stamp 2.58.0 native JWT middleware and useAuthApi.

Same skip paths, Bearer/query token, Clerk RS256 leftover, and local HS256
contract. routers/auth.py, user records, and AUTH_JWT_SECRET are untouched.
This commit is contained in:
2026-09-20 21:01:51 +02:00
parent 3a666ea8ae
commit 22bc075c58
10 changed files with 247 additions and 8 deletions
@@ -25,4 +25,5 @@ def test_middleware_package_is_src_and_does_not_export_auth():
assert "from backend.middleware.auth" not in text
assert "verify_request_user" not in text
auth = ROOT / "periscope" / "src" / "backend" / "middleware" / "auth.py"
assert not auth.exists()
assert auth.is_file()
assert "verify_request_user" in auth.read_text(encoding="utf-8")