from rest_framework_jwt.authentication import BaseJSONWebTokenAuthentication


class JSONWebTokenAuthenticationQS(BaseJSONWebTokenAuthentication):
    def get_jwt_value(self, request):
        return request.query_params.get('jwt')
add ability to send the JWT in the querystring is needed in cases where the user cannot set the header (for example the src element in HTML).