jwt_encode_handler(payload)验证 时出现 jwt_encode_handler ).decode('utf-8') AttributeError: 'str' object has no attribute 'decode' PyJWT版本2.6.0,降低至1.7.x问题解决
payload =jwt_decode_handler(jwt_value)exceptjwt.ExpiredSignature:# pragma: no covermsg ='Signature has expired.'raiseexceptions.AuthenticationFailed(msg)exceptjwt.DecodeError:# pragma: no covermsg ='Error decoding signature.'raiseexceptions.AuthenticationFailed(msg)exceptjwt.InvalidTokenError:# pragma: ...