Quick question about automatic token refresh in the Genesys Cloud Python SDK. My script hits a 401 Unauthorized error after 20 minutes, even though I’m using the genesyscloud client.
I assumed the SDK handles refresh tokens internally when passing a ClientConfiguration object. Instead, the request fails immediately.
Here is my setup:
config = ClientConfiguration(client_id=..., client_secret=..., private_key=...)
client = ClientConfiguration(config)
Do I need to manually catch the 401 and call client.auth.refresh_token()? I want to avoid manual loops.