Is there a way to make the Genesys Cloud Python SDK handle token refresh automatically? I’m currently using platform_client and have to manually call the auth endpoint every hour or so. It feels like I’m missing something obvious since the SDK should handle this. I’ve tried setting the refresh_token but it just errors out with a 401. Here’s my current setup:
config = platform_client.Configuration()
config.host = 'mycompany.mypurecloud.com'
api_instance = platform_client.PlatformApi(platform_client.ApiClient(config))
Any ideas?