From 38264e37afb7999104c815e6d3ef89187148e505 Mon Sep 17 00:00:00 2001 From: jaskirat1208 Date: Sun, 5 Apr 2026 22:50:55 -0400 Subject: [PATCH] Update smartConnect.py --- SmartApi/smartConnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]