This commit is contained in:
parent
27612186de
commit
2f3ceae8c2
|
@ -8,10 +8,10 @@ async def check_auth(req):
|
||||||
token = req.headers.get("Authorization")
|
token = req.headers.get("Authorization")
|
||||||
print(f"[services.auth] checking auth token: {token}")
|
print(f"[services.auth] checking auth token: {token}")
|
||||||
|
|
||||||
headers = {"Cookie": f"cookie_session={token};\ncookie_session_domain={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": f"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": {},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user