How to generate session when login is made through url?
-
from
SmartApi
importSmartConnect
api_key ="#####"
smartapi = SmartConnect(api_key)
login-url = smartapi.login_url()
# user is logged in using login url here and required tokens are collected using redirect url
#session = smartapi.generate_session(clientid,pwd,totp)
<-- cannot be used!
profile = smartapi.get_profile()<-- Throws error: AG8001
Note: This is a simiplified version of code to understand the proccess.