Persistent Disconnection / OAuth Token Drops – HubSpot WordPress Plugin
-
Issue Description: We are experiencing recurring disconnects with the HubSpot WordPress plugin on a production website. The plugin unexpectedly loses its authentication/connection to the HubSpot portal every 7 to 10 days, stopping buyer tracking until an admin manually reconnects it via the WordPress dashboard. This has now occurred multiple times.
Steps Already Taken:
- Verified third-party cookie handling in the admin browser environment.
- Excluded HubSpot JavaScript assets and REST API endpoints from site-level page caching and minification.
- Checked server security and WAF (Wordfence/Cloudflare) logs to ensure OAuth callback URLs are not being blocked.
Questions & Assistance Needed:
- Token Refresh Mechanism: Are there specific WP-Cron tasks or REST API endpoints responsible for maintaining/refreshing the OAuth token that might be failing or getting purged?
- Debug Logging: Is there a constant or flag we can define in
wp-config.phpto enable detailed API logging specifically for the HubSpot plugin to capture the exact disconnect event? - Known Conflicts: Are there known conflicts with specific object caching, host-level database cleanups, or host security policies that silently invalidate the auth keys?
Any guidance on diagnosing why the authentication token is consistently dropping would be greatly appreciated.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.