Skip to content

Commit 5c9932c

Browse files
committed
Added more exception information that decode() raises
1 parent 4e5cdbb commit 5c9932c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jose/jwt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def decode(token, key, algorithms=None, options=None, audience=None,
102102
103103
Raises:
104104
JWTError: If the signature is invalid in any way.
105+
ExpiredSignatureError: If the signature has expired.
106+
JWTClaimsError: If any claim is invalid in any way.
105107
106108
Examples:
107109

0 commit comments

Comments
 (0)