Skip to content

Commit

Permalink
More documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Landon Gilbert-Bland committed Mar 9, 2021
1 parent 228822d commit ead8f60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/add_custom_data_claims.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Storing Data in Access Tokens
=============================
Storing Additional Data in JWTs
===============================
You may want to store additional information in the access token which you could
later access in the protected views. This can be done using the ``additional_claims``
argument with the :func:`~flask_jwt_extended.create_access_token` or
Expand Down
2 changes: 1 addition & 1 deletion examples/additional_data_in_access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def login():
# In a protected view, get the claims you added to the jwt with the
# get_jwt() method
@app.route("/protected", methods=["GET"])
@jwt_required
@jwt_required()
def protected():
claims = get_jwt()
return jsonify(foo=claims["foo"])
Expand Down
2 changes: 1 addition & 1 deletion examples/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def login():


@app.route("/protected", methods=["GET"])
@jwt_required
@jwt_required()
def protected():
return jsonify(hello="world")

Expand Down

0 comments on commit ead8f60

Please sign in to comment.