This commit is contained in:
Inex Code 2024-07-04 21:01:59 +04:00
parent 66a2bc8a0c
commit db91a60938

View file

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