- Reorder exception handling to catch ExpiredSignatureError first for better error clarity
- Add PyJWTError as catch-all for unhandled JWT exceptions
- Update tests to reflect new exception handling behavior
- Add test case for generic PyJWTError handling
This improvement was discovered while writing comprehensive unit tests
for PassportService. The change follows Python best practices by catching
more specific exceptions before general ones and ensures all JWT-related
errors are properly handled.