How do I correctly to manage OAuth token lifecycles for a multi-tenant Partner App deployed across diverse Genesys Cloud organizations? Our integration faces intermittent 401 Unauthorized errors when background jobs exceed the standard access token window.
- Attempted implementing a local token cache with aggressive expiration checks, but race conditions still occur during high-concurrency API calls.
- Verified that the service account retains valid
integration:readandintegration:writescopes, yet the refresh endpoint returns inconsistent results across different org environments.