def jwt_response_payload_handler(token, user=None):
    return {
        "token": token,
        "user": str(user.username),
        "userId": user.id
    }

from storages.backends.s3boto import S3BotoStorage

StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage  = lambda: S3BotoStorage(location='media')

def dictfetchall(cursor):
    "Return all rows from a cursor as a dict"
    columns = [col[0] for col in cursor.description]
    return [
        dict(zip(columns, row))
        for row in cursor.fetchall()
    ]
14b9c014005d1815eb41f5f3836f6aa9faca834b
def jwt_response_payload_handler(token, user=None):
    return {'token': token, 'user': str(user.username), 'userId': user.id}


<mask token>

def jwt_response_payload_handler(token, user=None):
    return {'token': token, 'user': str(user.username), 'userId': user.id}


<mask token>


def dictfetchall(cursor):
    """Return all rows from a cursor as a dict"""
    columns = [col[0] for col in cursor.description]
    return [dict(zip(columns, row)) for row in cursor.fetchall()]

def jwt_response_payload_handler(token, user=None):
    return {'token': token, 'user': str(user.username), 'userId': user.id}


<mask token>
StaticRootS3BotoStorage = lambda : S3BotoStorage(location='static')
MediaRootS3BotoStorage = lambda : S3BotoStorage(location='media')


def dictfetchall(cursor):
    """Return all rows from a cursor as a dict"""
    columns = [col[0] for col in cursor.description]
    return [dict(zip(columns, row)) for row in cursor.fetchall()]

def jwt_response_payload_handler(token, user=None):
    return {'token': token, 'user': str(user.username), 'userId': user.id}


from storages.backends.s3boto import S3BotoStorage
StaticRootS3BotoStorage = lambda : S3BotoStorage(location='static')
MediaRootS3BotoStorage = lambda : S3BotoStorage(location='media')


def dictfetchall(cursor):
    """Return all rows from a cursor as a dict"""
    columns = [col[0] for col in cursor.description]
    return [dict(zip(columns, row)) for row in cursor.fetchall()]

def jwt_response_payload_handler(token, user=None):
    return {
        "token": token,
        "user": str(user.username),
        "userId": user.id
    }

from storages.backends.s3boto import S3BotoStorage

StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage  = lambda: S3BotoStorage(location='media')

def dictfetchall(cursor):
    "Return all rows from a cursor as a dict"
    columns = [col[0] for col in cursor.description]
    return [
        dict(zip(columns, row))
        for row in cursor.fetchall()
    ]