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 ", ""))