info/modules/passport/views.py
def logout():
    """
    logout API
    clear data from session
    """
    session.pop('user_id', None)
    session.pop('nick_name', None)
    session.pop('mobile', None)

    # return response
    return jsonify(error=RET.OK, errmsg='ok')

    logout API
    clear data from session
    
logout API
clear data from session
logout API clear data from session
def logout():
    session.pop('user_id', None)
    session.pop('nick_name', None)
    session.pop('mobile', None)
    return jsonify(error=RET.OK, errmsg='ok')
def logout ( ) : session . pop ( 'user_id' , None ) session . pop ( 'nick_name' , None ) session . pop ( 'mobile' , None ) return jsonify ( error = RET . OK , errmsg = 'ok' )
logout API
clear data from session
logout API clear data from session
"""
    logout API
    clear data from session
    """ # return response