more-debug2
This commit is contained in:
parent
807b397d37
commit
2d708392b4
|
@ -17,10 +17,10 @@ async def check_auth(req):
|
||||||
headers = {"Authorization": token, "Content-Type": "application/json"}
|
headers = {"Authorization": token, "Content-Type": "application/json"}
|
||||||
async with AsyncClient() as client:
|
async with AsyncClient() as client:
|
||||||
response = await client.post(AUTH_URL, headers=headers, data=gql)
|
response = await client.post(AUTH_URL, headers=headers, data=gql)
|
||||||
|
print(f"{response}")
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
return False, None
|
return False, None
|
||||||
r = response.json()
|
r = response.json()
|
||||||
print(f"{r}")
|
|
||||||
user_id = (
|
user_id = (
|
||||||
r.get("data", {}).get("getSession", {}).get("user", {}).get("id", None)
|
r.get("data", {}).get("getSession", {}).get("user", {}).get("id", None)
|
||||||
if INTERNAL_AUTH_SERVER
|
if INTERNAL_AUTH_SERVER
|
||||||
|
|
Loading…
Reference in New Issue
Block a user