Log full JWT claims on auth and refresh to find correct user UUID

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 20:15:04 -04:00
parent 828fc7d16a
commit 0367dac3cd
+4 -1
View File
@@ -79,6 +79,7 @@ async def authenticate(email: str, password: str) -> dict:
data = resp.json()
claims = _decode_jwt_claims(data["access"])
logger.info("Beli JWT claims: %s", claims)
return {
"access_token": data["access"],
"refresh_token": data["refresh"],
@@ -96,7 +97,9 @@ async def refresh_access_token(refresh_token: str) -> str:
timeout=15,
)
resp.raise_for_status()
return resp.json()["access"]
access = resp.json()["access"]
logger.info("Beli refreshed JWT claims: %s", _decode_jwt_claims(access))
return access
async def fetch_user_rankings(