Skip to content

Commit e1ab258

Browse files
authored
Merge pull request #135 from mgd722/master
Fixed docs oversight regarding logout route access
2 parents 5263d9d + 24947e9 commit e1ab258

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

examples/csrf_protection_with_cookies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def refresh():
8282
# in order to logout. unset_jwt_cookies is a helper function to
8383
# do just that.
8484
@app.route('/token/remove', methods=['POST'])
85-
@jwt_required
8685
def logout():
8786
resp = jsonify({'logout': True})
8887
unset_jwt_cookies(resp)

examples/jwt_in_cookie.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def refresh():
8080
# in order to logout. unset_jwt_cookies is a helper function to
8181
# do just that.
8282
@app.route('/token/remove', methods=['POST'])
83-
@jwt_required
8483
def logout():
8584
resp = jsonify({'logout': True})
8685
unset_jwt_cookies(resp)

0 commit comments

Comments
 (0)