an API. On successfully Auth, the API returns a JWT access token (expiry 20 minutes) and a refresh token (expiry 60 minutes).
How would I go about creating a task to automatically refresh the token every, 59 minutes for example?
I want to make it such that if the token is manually refreshed before the refresh window is up, the task is also rescheduled to work with the new token/timeframe.
Обсуждают сегодня