This is a question to which I cannot find an answer in the docs and no one appears to have asked yet. I’m trying to make an app that feeds billing data from another source into a new draft invoice in FreeAgent. I don’t want this to be web facing, I want it to be a node microservice just sitting on a server somewhere generating invoices on a schedule. I can authorise my app with a system user added to our FreeAgent account, then I get a refresh token - I can do this via the Google developer playground - but what’s not clear to me is if this refresh token will ever expire?
From reading around, it’s possible refresh tokens will expire, but it depends on the OAuth2 server and how it’s set up. I’m just wondering if:
- there is an expiry of refresh tokens; and
- if so, how long they live for.