From db91a60938b435862257c54a8f823bf2c87bfca6 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 4 Jul 2024 21:01:59 +0400 Subject: [PATCH] fix --- selfprivacy_api/graphql/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/graphql/__init__.py b/selfprivacy_api/graphql/__init__.py index ecc885a..c34a5b0 100644 --- a/selfprivacy_api/graphql/__init__.py +++ b/selfprivacy_api/graphql/__init__.py @@ -24,6 +24,6 @@ class IsAuthenticated(BasePermission): print("Printing connection params from the ws connect!") print(connection_params) token = connection_params.get("Authorization") - if token in None: + if token is None: return False return is_token_valid(token.replace("Bearer ", ""))