From 54acfe2b89fef0326042e0d1c2b3e29bc2bb2d41 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 11 Dec 2023 22:39:58 +0300 Subject: [PATCH] authorizer-connector-fix-4 --- services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index 232c11c3..dd3501ff 100644 --- a/services/auth.py +++ b/services/auth.py @@ -8,7 +8,7 @@ async def check_auth(req): token = req.headers.get("Authorization") print(f"[services.auth] checking auth token: {token}") - headers = {"Authorization": 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)"