more-debug2

This commit is contained in:
Untone 2023-10-11 14:49:03 +03:00
parent 807b397d37
commit 2d708392b4

View File

@ -17,10 +17,10 @@ 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=gql)
print(f"{response}")
if response.status_code != 200:
return False, None
r = response.json()
print(f"{r}")
user_id = (
r.get("data", {}).get("getSession", {}).get("user", {}).get("id", None)
if INTERNAL_AUTH_SERVER