Remove unnecessary use of async now that db access doesn't need awaiting.

This commit is contained in:
2026-01-27 23:16:17 +00:00
parent abec77d561
commit 13c49aebfd
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ async def validate_token(
consumed = EXPIRES - (ctx.session.expiry - datetime.now(timezone.utc))
if not timedelta(0) < consumed < _REFRESH_INTERVAL:
try:
await refresh_session_token(
refresh_session_token(
auth,
ip=request.client.host if request.client else "",
user_agent=request.headers.get("user-agent") or "",
@@ -119,7 +119,7 @@ async def token_info(credentials=Depends(bearer_auth)):
if not passphrase.is_well_formed(token):
raise HTTPException(400, "Invalid token format")
try:
reset_token = await get_reset(token)
reset_token = get_reset(token)
except ValueError as e:
raise HTTPException(401, str(e))