request_token validity

chintanvhparmar
Hi,
Please let me know how long a request_token is valid? For example, i pass a token to my API based java program, how long will the request_token will remain valid upto?
  • sujith
    Hi @chintanvhparmar,
    Request token is valid only for 5 minutes and it can be used only once.
  • chintanvhparmar
    Hi Sujith,
    Thanks for reply. I understand the token can be used only once to get KiteConnect object. Need some more clarification on 5min timme frame.
    Does this mean that we need to use the request_token to get KiteConnect object within 5 min of its generation OR
    Does this mean that once KiteConnect object is created it can be usable only for 5min and new KiteConnectObject needs to be created after 5min interval to use API methods?

    Thanks,
    Chintan Parmar
  • Vivek
    Vivek edited December 2016
    @chintanvhparmar Request token will expire within 5 minutes of its generation so once its generated you have to use it within 5 mins to exchange for access token. KiteConnect object you can use it aslong as user is logged in and you are not getting any TokenException
  • chintanvhparmar
    Hi Vivek,
    Thanks for the clarification. I will check how long KiteConnect object remains usable while user is logged in.

    Thanks,
    Chintan Parmar
This discussion has been closed.