OAuth client credentials grant token lifetime in CI/CD

The access token expires after 2 hours, which kills my nightly Terraform runs. I’m generating the token via the client credentials grant in the pipeline script.

curl -X POST "https://api.myniceinstance.com/oauth/token" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d "grant_type=client_credentials&client_id=<ID>&client_secret=<SECRET>"

The response gives me a 2-hour TTL. I know about the refresh grant, but the pipeline runs on a schedule, not interactively, so storing and rotating refresh tokens in the secrets manager feels like overkill for a server-to-server call. Is there a way to bump the expires_in value higher for a specific client? I checked the client config in the admin UI, but I don’t see a field for token lifetime. The docs mention long-lived tokens for legacy integrations, but nothing for the modern OAuth flow. Am I missing a parameter in the POST body? Or do I have to write a wrapper script that handles the refresh logic every time the pipeline starts?