This commit is contained in:
parent
954c3740cd
commit
74ca120879
|
@ -17,6 +17,7 @@ starlette = "^0.32.0.post1"
|
||||||
gql = "^3.4.1"
|
gql = "^3.4.1"
|
||||||
ariadne = "^0.21"
|
ariadne = "^0.21"
|
||||||
aiohttp = "^3.9.1"
|
aiohttp = "^3.9.1"
|
||||||
|
requests = "^2.31.0"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
setuptools = "^69.0.2"
|
setuptools = "^69.0.2"
|
||||||
|
|
|
@ -12,10 +12,9 @@ async def check_auth(req):
|
||||||
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
|
headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"}
|
||||||
# query getSession($params: SessionQueryInput){ session(params: $params) { message user { id } } }
|
# query getSession($params: SessionQueryInput){ session(params: $params) { message user { id } } }
|
||||||
gql = {
|
gql = {
|
||||||
"query": "query GetSession($params: SessionQueryInput)"
|
"query": "query GetSession($params: SessionQueryInput){ session(params: $params) { message user { id } } }",
|
||||||
+ "{ session(params: $params) { message user { id } } }",
|
|
||||||
"operationName": "GetSession",
|
"operationName": "GetSession",
|
||||||
"variables": {},
|
"variables": None, # {"params": {"roles": ["author"]}},
|
||||||
}
|
}
|
||||||
|
|
||||||
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30.0)) as session:
|
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30.0)) as session:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user