{"id":19004051,"date":"2026-08-26T23:44:21","date_gmt":"2026-08-26T23:44:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/persistent-disconnection-oauth-token-drops-hubspot-wordpress-plugin\/"},"modified":"2026-08-26T23:44:21","modified_gmt":"2026-08-26T23:44:21","slug":"persistent-disconnection-oauth-token-drops-hubspot-wordpress-plugin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/persistent-disconnection-oauth-token-drops-hubspot-wordpress-plugin\/","title":{"rendered":"Persistent Disconnection \/ OAuth Token Drops \u2013 HubSpot WordPress Plugin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Issue Description:<\/strong> 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Steps Already Taken:<\/strong><\/p>\n\n\n\n<ul>\n<li>Verified third-party cookie handling in the admin browser environment.<\/li>\n\n\n\n<li>Excluded HubSpot JavaScript assets and REST API endpoints from site-level page caching and minification.<\/li>\n\n\n\n<li>Checked server security and WAF (Wordfence\/Cloudflare) logs to ensure OAuth callback URLs are not being blocked.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Questions &amp; Assistance Needed:<\/strong><\/p>\n\n\n\n<ol start=\"1\">\n<li><strong>Token Refresh Mechanism:<\/strong> Are there specific WP-Cron tasks or REST API endpoints responsible for maintaining\/refreshing the OAuth token that might be failing or getting purged?<\/li>\n\n\n\n<li><strong>Debug Logging:<\/strong> Is there a constant or flag we can define in <code>wp-config.php<\/code> to enable detailed API logging specifically for the HubSpot plugin to capture the exact disconnect event?<\/li>\n\n\n\n<li><strong>Known Conflicts:<\/strong> Are there known conflicts with specific object caching, host-level database cleanups, or host security policies that silently invalidate the auth keys?<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Any guidance on diagnosing why the authentication token is consistently dropping would be greatly appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-19004051","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19004051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19004051\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19004051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}