Reformatted files
This commit is contained in:
@@ -15,7 +15,9 @@ class JWTAuthentication(BaseAuthentication):
|
||||
return "Provide a valid token in the 'Authorization' header"
|
||||
|
||||
def authenticate(self, request):
|
||||
if not IsAuthenticated in getattr(request.resolver_match.func.cls, "permission_classes", []):
|
||||
if IsAuthenticated not in getattr(
|
||||
request.resolver_match.func.cls, "permission_classes", []
|
||||
):
|
||||
return None
|
||||
|
||||
token = request.headers.get("Authorization", "").split("Bearer ")[-1]
|
||||
|
||||
Reference in New Issue
Block a user