diff --git a/core/auth.py b/core/auth.py index ed90601..f37fe4f 100644 --- a/core/auth.py +++ b/core/auth.py @@ -72,10 +72,7 @@ def get_jwt_value(self, request): auth_header_prefix = self.prefix.lower() or "" if not auth: - if self.cookie: - return request.COOKIES.get(self.cookie) - return None - + return request.COOKIES.get(self.cookie) if self.cookie else None if auth_header_prefix is None or len(auth_header_prefix) < 1: auth.append("") auth.reverse()