From 2f3ceae8c2b00881829c941a853c11bee4a7fb32 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 11 Dec 2023 22:56:59 +0300 Subject: [PATCH] authorizer-connector-fix-6 --- services/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth.py b/services/auth.py index a4eb799a..23e4a451 100644 --- a/services/auth.py +++ b/services/auth.py @@ -8,10 +8,10 @@ async def check_auth(req): token = req.headers.get("Authorization") 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 } } } gql = { - "query": f"query GetSession($params: SessionQueryInput)" + "query": "query GetSession($params: SessionQueryInput)" + "{ session(params: $params) { message user { id } } }", "operationName": "GetSession", "variables": {},