diff --git a/SmartApi/smartConnect.py b/SmartApi/smartConnect.py index d39fd53e..2101fd44 100644 --- a/SmartApi/smartConnect.py +++ b/SmartApi/smartConnect.py @@ -312,7 +312,7 @@ def renewAccessToken(self): tokenSet={} - if "jwtToken" in response: + if "jwtToken" in response['data']: tokenSet['jwtToken']=response['data']['jwtToken'] tokenSet['clientcode']=self. userId tokenSet['refreshToken']=response['data']["refreshToken"]