From afb65d396bb12dd7bbbeea97303d1b32c9d5425b Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 14 Dec 2023 00:47:02 +0300 Subject: [PATCH] operation-name-fix --- services/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index 7021bdca..954a95a1 100644 --- a/services/auth.py +++ b/services/auth.py @@ -11,6 +11,7 @@ async def check_auth(req) -> (bool, int | None): # Logging the authentication token print(f"[services.auth] checking auth token: {token}") query_name = "validate_jwt_token" + opeation = "ValidateTokenå" headers = { "Content-Type": "application/json", } @@ -23,8 +24,9 @@ async def check_auth(req) -> (bool, int | None): } gql = { - "query": f"query ValidateToken($params: ValidateJWTTokenInput!) {{ {query_name}(params: $params) {{ is_valid claims }} }}", + "query": f"query {opeation}($params: ValidateJWTTokenInput!) {{ {query_name}(params: $params) {{ is_valid claims }} }}", "variables": variables, + "operationName": opeation, } print(f"[services.auth] Graphql: {gql}") try: