diff --git a/services/auth.py b/services/auth.py index a90c069..442ec9d 100644 --- a/services/auth.py +++ b/services/auth.py @@ -1,3 +1,4 @@ +import json from functools import wraps from httpx import AsyncClient, HTTPError from settings import AUTH_URL @@ -17,7 +18,7 @@ async def check_auth(req): headers = {"Authorization": token, "Content-Type": "application/json"} async with AsyncClient() as client: response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql)) - print(f"{response}") + print(f"{response.text}") if response.status_code != 200: return False, None r = response.json()