This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

oauth token refresh
#3
(25.03.2022, 07:30)admin Wrote: Put your access and refresh tokens into storage. Create a scheduled script to handle the refresh and put updated tokens back into storage. All other scripts will use stored tokens for requests.

Thanks, how can I be approximate in expiry time, if I request the refresh token before expiry time lapses a new token is not returned, if I have a scheduled script running say every 10min to refresh tokens I might have to wait before the new token is returned and I guess it is depending on when the last call was made and when the scheduled script is due to run. 

I am thinking Is it possible to calculate os.time() + expire_sec and make a script run at this approximate time?
Reply


Messages In This Thread
oauth token refresh - by benanderson_475 - 25.03.2022, 00:09
RE: oauth token refresh - by admin - 25.03.2022, 07:30
RE: oauth token refresh - by benanderson_475 - 25.03.2022, 08:38
RE: oauth token refresh - by admin - 25.03.2022, 08:44

Forum Jump: