I’m writing a background worker that interacts with webhooks and the api. I wrote a cyclic process checking every 20 hours if a token is still valid, and gets a new one using the refresh token. Sometimes, the whole worker has nothing to do for days, and I’m wondering if I could also reduce this automatic refresh process - and just refresh a token when I really need it.
So my question: how long is a refresh token valid? Or does it not have any expiration?