Why the token of new registered app in Videoask is expiring so soon? Shouldn’t this be active for 30 days?

Why the token of new registered app in Videoask is expiring so soon? Shouldn’t this be active for 30 days?
Best answer by andrew_videoask
Hi
refresh_token
doesn’t expire. You can use the refresh_token
at any time to generate a new access_token
.
The access_token
expires after 60 minutes. It’s not currently possible to generate a permanent access_token
, so you’ll need to generate a new one when it expires.
It’s best practice to use a caching layer like Redis to store the access_token
. That way, you don’t have to generate a new access_token
every time you call the VideoAsk API. Instead, you can use the current access_token
until it expires. Once it expires, your code can generate a new one.
I hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.