I have been using the same code for the last one year. i have active subcription and 2fa enabled. This was working till yesterday. When I try to create a user session, I get this error today session expired com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:48) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:85)
https://kite.trade/forum/discussion/11061/uanble-to-login-to-kite-api#latest Don't create duplicate threads.