Skip to content

Commit a0ca7c0

Browse files
authored
Added required parameters for callbacks
1 parent 66fdeb2 commit a0ca7c0

File tree

1 file changed

+2
-2
lines changed
  • project/using-flask-restful

1 file changed

+2
-2
lines changed

project/using-flask-restful/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def missing_token_callback(error):
7373

7474

7575
@jwt.needs_fresh_token_loader
76-
def token_not_fresh_callback():
76+
def token_not_fresh_callback(jwt_header, jwt_payload):
7777
return (
7878
jsonify(
7979
{"description": "The token is not fresh.", "error": "fresh_token_required"}
@@ -83,7 +83,7 @@ def token_not_fresh_callback():
8383

8484

8585
@jwt.revoked_token_loader
86-
def revoked_token_callback():
86+
def revoked_token_callback(jwt_header, jwt_payload):
8787
return (
8888
jsonify(
8989
{"description": "The token has been revoked.", "error": "token_revoked"}

0 commit comments

Comments
 (0)