diff --git a/fennel_invest_api/fennel.py b/fennel_invest_api/fennel.py index 60ba174..6a4827e 100644 --- a/fennel_invest_api/fennel.py +++ b/fennel_invest_api/fennel.py @@ -101,7 +101,7 @@ def login(self, email, wait_for_code=True, code=None): payload = { "grant_type": "http://auth0.com/oauth/grant-type/passwordless/otp", "client_id": self.client_id, - "otp": code, + "otp": str(code), "username": email, "scope": "openid profile offline_access email", "audience": "https://meta.api.fennel.com/graphql", diff --git a/setup.py b/setup.py index 662bc2e..ede6d56 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="fennel_invest_api", - version="1.0.2", + version="1.0.3", description="Unofficial Fennel.com Invest API written in Python Requests", long_description=open("README.md").read(), long_description_content_type="text/markdown",