Day 087 - Project 87 : Authenticate

from flask import Flask, make_response, redirect, request, url_for

app = Flask(__name__)


@app.route('/logout')
def logout():
    response = make_response(redirect(url_for('index')))
    response.delete_cookie('REPL_AUTH', domain='.' + request.host, path='/')
    return response
1 Like