From 5c9932c8c0f7fc81154736fb58a5a8104b7dd0b3 Mon Sep 17 00:00:00 2001 From: sukso96100 Date: Fri, 6 Oct 2017 20:00:23 +0900 Subject: [PATCH] Added more exception information that decode() raises --- jose/jwt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jose/jwt.py b/jose/jwt.py index 2128c851..2da511fd 100644 --- a/jose/jwt.py +++ b/jose/jwt.py @@ -102,6 +102,8 @@ def decode(token, key, algorithms=None, options=None, audience=None, Raises: JWTError: If the signature is invalid in any way. + ExpiredSignatureError: If the signature has expired. + JWTClaimsError: If any claim is invalid in any way. Examples: