operation-name-fix
All checks were successful
deploy / deploy (push) Successful in 1m34s

This commit is contained in:
Untone 2023-12-14 00:47:02 +03:00
parent b36a655090
commit afb65d396b

View File

@ -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: