I’m trying to use the genesyscloud Python SDK for long-running scripts, but the access token keeps expiring after an hour. The docs say the SDK handles refresh automatically if you pass the client ID and secret, but I’m still getting 401s. Here’s the init code:
from genesyscloud.auth import get_oauth_client
oauth_client = get_oauth_client(client_id='xxx', client_secret='yyy', environment='mypurecloud.com')
Am I missing a step to enable auto-refresh, or do I still need to manually call refresh_token() in a loop?