@auth.route('/logout')
def log_out():
    session.pop('user_id', None)

    flash("You're now logged out! Thanks for visiting.", 'info')
    return redirect(url_for('main.home'))
Log out a user, clearing their session variables
dataset/ETHPy150Open TwilioDevEd/authy2fa-flask/twofa/auth/views.py/log_out