hi before the 02/11/2022 the refresk token expire in 86400 seconds and after the 02/11/2022 the refresh token, expire in 3600 seconds . It’s normal or do you have the bug ? I can’t see this updat in the documentation.
Thanks for you help
Best answer by andrew_videoaskView original
@driaux, are you seeing this somewhere in an API response?
The refresh_token should not expire.
hi not see in the documencation API.
Last the 3/11/2022, all token expire after 3600 seconds. In the response expire_in have the nice seconds before the 2/11/2022.
I have this response for the POST https://auth.videoask.com/oauth/token
before i have this (call of the 2/11/2022)
I’m checking with our team to see if this change was intended.
@driaux, yes this was a change that was pushed into production a few days.
The access token is now valid for 60 minutes, rather than 24 hours.
Let me know if you have any further questions!
What would be the best way to make sure access token is up to date in our system?
You could run a cronjob or cache the access token. So basically, when you generate a new access token you cache it for its lifetime of one hour.
Then when the next request comes in, you can check if the access token is still cached. If it is, you’re good to go. If it’s not, use the refresh token to generate a new access token.