diff --git a/services/auth.py b/services/auth.py index 1cd5569..f7f07f3 100644 --- a/services/auth.py +++ b/services/auth.py @@ -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()