Skip to content

Commit 4863747

Browse files
committed
Wipe out everything in session
1 parent a51912c commit 4863747

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def authorized():
4545

4646
@app.route("/logout")
4747
def logout():
48-
session["user"] = None # Log out from this app from its session
49-
# session.clear() # If you prefer, this would nuke the user's token cache too
48+
session.clear() # Wipe out user and its token cache from session
5049
return redirect( # Also need to logout from Microsoft Identity platform
5150
"https://login.microsoftonline.com/common/oauth2/v2.0/logout"
5251
"?post_logout_redirect_uri=" + url_for("index", _external=True))

0 commit comments

Comments
 (0)