From 8fb2764bc125042998271e5ccd031c0926bd6118 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 14 Dec 2023 00:10:34 +0300 Subject: [PATCH] debug-gql --- services/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth.py b/services/auth.py index 6e9e3a1e..4330d523 100644 --- a/services/auth.py +++ b/services/auth.py @@ -26,7 +26,7 @@ async def check_auth(req) -> (bool, int | None): "query": f"query ValidateToken($params: ValidateJWTTokenInput!) {{ {query_name}(params: $params) {{ is_valid claims }} }}", "variables": variables, } - + print(f"[services.auth] Graphql: {gql}") try: # Asynchronous HTTP request to the authentication server async with aiohttp.ClientSession() as session: @@ -67,7 +67,7 @@ def login_required(f): async def decorated_function(*args, **kwargs): info = args[1] context = info.context - print(context) + # print(context) req = context.get("request") # Performing authentication check is_authenticated, user_id = await check_auth(req)