Login URL: https://kite.zerodha.com/connect/login?api_key=&sess_id= Login response: {'status': 'success', 'data': {'user_id': 'TAC265', 'request_id': , 'twofa_type': 'totp', 'twofa_types': ['totp', 'app_code'], 'twofa_status': 'active', 'profile': {'user_name': , 'user_shortname': , 'avatar_url': None}}} 2FA response: b'{"status":"success","data":{"profile":{}}}' Final redirected URL: https://kite.zerodha.com/connect/authorize?api_key=&sess_id= - This is not the redirection URL for my app. when I clicked on it and checked - the error is The user is not enabled for the app. In kite app, under connected apps my app not showing up. Error during login: Request token not found in the redirected URL Login attempt failed. Retrying...
I have fixed this myself. It was another level of authentication requested. It was happening only for the first time and now it is working fine. Thanks for the support