def jwt_response_payload_handler(token, user=None, request=None):
 return {'token': token}

def jwt_response_payload_handler ( token , user = None , request = None ) : return { 'token' : token }
returns the response data for both the login and refresh views .