debug-auth-connector

This commit is contained in:
Untone 2023-10-13 15:42:10 +03:00
parent 473f3a5a32
commit 4e078bf978

View File

@ -16,7 +16,7 @@ async def check_auth(req):
operation = "GetUserId"
headers = {
"Authorization": token,
"Authorization": 'Bearer ' + token,
"Content-Type": "application/json"
}
@ -28,7 +28,7 @@ async def check_auth(req):
async with AsyncClient() as client:
response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql))
print(f"{response.text}")
print(f"[services.auth] response: {response.status_code} {response.text}")
if response.status_code != 200:
return False, None
r = response.json()