want to know request token expiration time

aakashps1995
aakashps1995 edited December 2017 in General
every time for new request i need to change request token because of session expired 403 error,
i used switch case and created infinite loop,
now how long this session can run ???
using infinite loop can i use this session for 6 hours ???
  • tonystark
    tonystark edited December 2017
    The request token is just to generate an access token. Request token expires immediately after that. And it cannot be reused. You must persist generated access token somewhere like in database and use that for subsequent requests.

    The login process is meant to do once in a day. Because the access token you get is valid for the entire day unless you log out from Kite or log in to Pi.

    Read about login flow
Sign In or Register to comment.