Need a confirmation on Kite Connect access token behaviour

sachin26dec
Issue: When I generate the access token multiple times during the same day, I receive the same access_token string each time. Is this expected for an active session until the next-day reset?
- Questions:
1) Is the token value supposed to remain identical for the whole day unless I explicitly invalidate the session?
2) What is the official daily reset window (IST) after which a new token is required?
3) Does re-running the login flow from another device/session rotate or invalidate the existing token?
4) Recommended best practice for production (cache/reuse vs. re-generate)?
  • salim_chisty
    An access token is valid for one whole day. Once you get an access token, you don't have to request it again unless you are logged out. Once you get an access token, store it in a file or app preferences and reuse it. Make sure you store the access token in preferences or a database and reuse it in the next run, and don't call generateSession for every run.
    You may refer to the similar discussion here.
Sign In or Register to comment.