PureCloud SDK Python: Token refresh not triggering automatically during long-running script

We’ve got a legacy Python script that uses the genesys-cloud-python SDK to pull historical conversation data. It runs for about 4 hours straight. The auth token expires after an hour, and the SDK isn’t refreshing it automatically like the docs suggest it should.

Here’s the setup:

from _platform_client import Configuration, PlatformApiClient

config = Configuration(
 client_id='MY_CLIENT_ID',
 client_secret='MY_CLIENT_SECRET',
 api_host='https://api.mypurecloud.com'
)

client = PlatformApiClient(config)
# ... later in the script ...
api_instance = ConversationApi(client)
results = api_instance.get_conversations_web()

The script crashes with a 401 Unauthorized error roughly 60 minutes after the initial authenticate() call. I’ve checked the Configuration class, and there’s no obvious auto_refresh flag that I’m missing.

I know I can manually call client.authenticate() in a try/except block, but that feels like a band-aid. The SDK is supposed to handle the token lifecycle. Is there a specific method I need to call on the client object to enable this? Or is this a known issue with the Python wrapper?

We’re on version 3.1.2 of the SDK. Upgrading is an option, but I’d rather not rewrite the auth logic if I don’t have to.