How to check if session is active (token hasn't expired)?

I am using kiteConnect.getProfile() which throws a TokenException if token has expired. Is there a better way?
  • rakeshr
    Currently, we don't have any function call that returns a boolean flag to check for successful active sessions. You will need to call any API-end point and handle the above exception to know the current active session status. Thought, we will take this as a feature request and add it to our list.
Sign In or Register to comment.