A non-admin user (build account) creates an access token on behalf of itself with refresh option set to true. The idea is that if there is a long running job then he can have a cron job on that build machine to refresh the token until the build is complete.
When the API is used to refresh the token, it returns a new token which defeats the purpose!
The build will break because the original token has expired.
Provide a parameter to keep the original token and ket the Admin set maximum number of times that it can be refreshed.