diff options
author | Mark Adams <mark@markadams.me> | 2017-04-17 08:25:39 -0500 |
---|---|---|
committer | Mark Adams <mark@markadams.me> | 2017-04-17 08:34:12 -0500 |
commit | 3447f0c0eb7de46042b5cda975d37e361168bf60 (patch) | |
tree | d435cb09b5aa15580527b0d41b6d9e32d3f6fc4b /jwt/api_jwt.py | |
parent | 8f3a2a8a4098693357b69d63a1dbec514ed7c701 (diff) | |
download | pyjwt-190-remove-iat-verification.tar.gz |
Non-numeric 'iat' now raises InvalidIssuedAtError on decode()190-remove-iat-verification
Diffstat (limited to 'jwt/api_jwt.py')
-rw-r--r-- | jwt/api_jwt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py index 059c4a0..bca6823 100644 --- a/jwt/api_jwt.py +++ b/jwt/api_jwt.py @@ -123,7 +123,7 @@ class PyJWT(PyJWS): try: int(payload['iat']) except ValueError: - raise DecodeError('Issued At claim (iat) must be an integer.') + raise InvalidIssuedAtError('Issued At claim (iat) must be an integer.') def _validate_nbf(self, payload, now, leeway): try: |