Life time of Access_Token

Shabeershah2002
Hi

I have been getting same access_token for couple of days now , could you please tell me the life time of access_token ?
as i have custom interface being build where i am considering refreshing these tokens so not sure which are the tokens will expire at what time !,

please give the life time of access_token and public_token.
  • Kailash
    @Shabeershah2002 Every time you get a 403 TokenException, you should initiate a re-login. That's the only way to refresh tokens.

    That said, a logout invalidates the access_token. They're also flushed at around 8.30 in the mornings.
  • Shabeershah2002
    Hi Kailash

    Thanks for the info, ok i will login to keep the session , but is that Access_Token always same ?
    may be i can set it const var if it is.
  • Kailash
    You have to get a new access_token every time. It is generated randomly.
  • sekharrockz
    so, the only way to re-login is to wait till 8.30 every morning ? because your logout api only invalidates the session.
  • Kailash
    @sekharrockz If you logout of Kite (kite.zerodha.com), that does a hard logout of your OMS session, web session, and all connected API sessions.
Sign In or Register to comment.