Main issue is starting with version 2.0.0 `jwt.encode()` retruns an `str` whereas older version returns `bytes` If not too complex we should support both. See this issue: https://github.com/Ponytech/appstoreconnectapi/issues/33#issuecomment-755434912