Skip to content

Commit

Permalink
Merge pull request #81 from LUS24/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jslvtr authored Oct 13, 2022
2 parents 271e593 + a0ca7c0 commit 6bc81d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions project/using-flask-restful/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def missing_token_callback(error):


@jwt.needs_fresh_token_loader
def token_not_fresh_callback():
def token_not_fresh_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token is not fresh.", "error": "fresh_token_required"}
Expand All @@ -83,7 +83,7 @@ def token_not_fresh_callback():


@jwt.revoked_token_loader
def revoked_token_callback():
def revoked_token_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token has been revoked.", "error": "token_revoked"}
Expand Down
4 changes: 2 additions & 2 deletions project/using-flask-restx/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def missing_token_callback(error):


@jwt.needs_fresh_token_loader
def token_not_fresh_callback():
def token_not_fresh_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token is not fresh.", "error": "fresh_token_required"}
Expand All @@ -83,7 +83,7 @@ def token_not_fresh_callback():


@jwt.revoked_token_loader
def revoked_token_callback():
def revoked_token_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token has been revoked.", "error": "token_revoked"}
Expand Down
4 changes: 2 additions & 2 deletions project/using-flask-smorest/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def missing_token_callback(error):


@jwt.needs_fresh_token_loader
def token_not_fresh_callback():
def token_not_fresh_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token is not fresh.", "error": "fresh_token_required"}
Expand All @@ -91,7 +91,7 @@ def token_not_fresh_callback():


@jwt.revoked_token_loader
def revoked_token_callback():
def revoked_token_callback(jwt_header, jwt_payload):
return (
jsonify(
{"description": "The token has been revoked.", "error": "token_revoked"}
Expand Down

1 comment on commit 6bc81d1

@vercel
Copy link

@vercel vercel bot commented on 6bc81d1 Oct 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.