From 412bf1fbbf41f1d1f0c416896e41c37c38dace51 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 6 Nov 2023 19:02:16 +0300 Subject: [PATCH] uniauth --- resolvers/load.py | 2 +- services/auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/load.py b/resolvers/load.py index 56faf9b..06d520f 100644 --- a/resolvers/load.py +++ b/resolvers/load.py @@ -41,7 +41,7 @@ async def load_messages(chat_id: str, limit: int = 5, offset: int = 0, ids: Opti replies.append(reply_to) if replies: messages += await load_messages(chat_id, offset, limit, replies) - except Exception as e: + except Exception: import traceback traceback.print_exc() return messages diff --git a/services/auth.py b/services/auth.py index 9af880b..62c3e4f 100644 --- a/services/auth.py +++ b/services/auth.py @@ -15,7 +15,7 @@ async def check_auth(req): query_type = "mutation" if INTERNAL_AUTH_SERVER else "query" operation = "GetUserId" - headers = {"Authorization": "Bearer " + token, "Content-Type": "application/json"} + headers = {"Authorization": token, "Content-Type": "application/json"} # "Bearer " + removed gql = { "query": query_type + " " + operation + " { " + query_name + " { user { id } } " + " }",