fix test issues

This commit is contained in:
2025-10-21 19:42:39 +02:00
parent 2e57c4f424
commit 71841645cf
7 changed files with 321 additions and 290 deletions

View File

@@ -70,7 +70,7 @@ class AuthMiddleware(BaseHTTPMiddleware):
try:
session = auth_service.create_session_model(token)
# attach to request.state for downstream usage
request.state.session = session.dict()
request.state.session = session.model_dump()
except AuthError:
# Invalid token: if this is a protected API path, reject.
# For public/auth endpoints let the dependency system handle