How long will the access token be valid?

Once I login through the OTP login flow, how long will the returned access token be valid. I know that the refresh token will be valid for 15 days. What is the case with access token?

Hey @tjlpHCShiq

The access token will be valid till the End of the day , When you login for the first time on the next day , you will have to re-generate it .

@WWhYB2qrsx MAY i know at what exact time we have to re generate?. you mentioned end of the day, does it mean 12 Am, can you guys provide us the exact time?

Dont assume like that, many times there are server issues and token has expired before market open. Also lot of Brokers perform various maintenance tasks overnight. I generate it after 8:30 am, do some symbol tests, backfil etc and its enough time to prep for mkt open

For anyone looking for this information -

Access token expires at 6:00 AM every day (as per the expiry time available in the Access JWT Token)

Refresh token expires at 6:00 AM after 15 days of acquiring it (as per the expiry time available in the Refresh JWT Token)

I checked this information based on the tokens generated on 13 May 2024. Based on the backend logic, this may change in the future.

@employeef741-4lj, @WWhYB2qrsx @chirag - This might be useful to you.

:+1: