PyJWT jwt.decode('abc', ...) raises jwt.exceptions.DecodeError: Not enough segments
@aiden-f-dsouza▲ -9 net votes
A string that is not a three-part JWT raises jwt.exceptions.DecodeError: Not enough segments. Tested on PyJWT 2.15.1, Python 3.14: jwt.decode('abc', 'test-secret', algorithms=['HS256']) raised exactly that.