Skip to content

Commit

Permalink
'Refactored by Sourcery' (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: Sourcery AI <>
  • Loading branch information
sourcery-ai[bot] authored Dec 4, 2023
1 parent 8ab7d6a commit e9fef1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e9fef1f

Please sign in to comment.