jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.11k stars 684 forks source link

Add client connection error exception #876

Closed daviddavis closed 1 year ago

daviddavis commented 1 year ago

This change adds a new PyJWKClientConnectionError exception which helps to differentiate connection errors from other types of failures when calling methods such as get_signing_key_from_jwt(). This allows users to do things like retry the method if there's a connection issue.