Skip to content

Commit 699ec4a

Browse files
committed
changes per vimalloc
1 parent 89b0633 commit 699ec4a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

flask_jwt_extended/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
unset_jwt_cookies, unset_refresh_cookies
1212
)
1313

14-
__version__ = '3.14.0'
14+
__version__ = '3.13.1'

flask_jwt_extended/jwt_manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,9 @@ def decode_key_loader(self, callback):
391391
The default implementation returns the decode key specified by
392392
`JWT_SECRET_KEY` or `JWT_PUBLIC_KEY`, depending on the signing algorithm.
393393
394-
*HINT*: The callback function should preferably be a function that takes
394+
*HINT*: The callback function should be a function that takes
395395
**two** arguments, which are the unverified claims and headers of the jwt
396-
(dictionaries), but may take one argument (just the claims) for backwards
397-
compatability. The function must return a *string* which is the decode key
396+
(dictionaries). The function must return a *string* which is the decode key
398397
in PEM format to verify the token.
399398
"""
400399
self._decode_key_callback = callback

flask_jwt_extended/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def decode_jwt(encoded_token, secret, algorithm, identity_claim_key,
131131

132132
# Make sure that any custom claims we expect in the token are present
133133
if 'jti' not in data:
134-
data['jti'] = _create_csrf_token()
134+
data['jti'] = None
135135
if identity_claim_key not in data:
136136
raise JWTDecodeError("Missing claim: {}".format(identity_claim_key))
137137
if 'type' not in data:

tests/test_decode_tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_default_decode_token_values(app, default_access_token):
7373
with app.test_request_context():
7474
decoded = decode_token(token)
7575
assert decoded['type'] == 'access'
76-
assert 'jti' in decoded
76+
assert decoded['jti'] is None
7777
assert decoded['fresh'] is False
7878

7979

0 commit comments

Comments
 (0)