From 85703a8bf7e5e3d71b7adc23ca15be1a20da648d Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 25 Feb 2021 02:05:52 -0500 Subject: [PATCH] :bug: Fix issue when refreshing OAuth2 credentials (Hubspot) (#1489) --- packages/nodes-base/nodes/Hubspot/GenericFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts b/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts index a5a05a562d..5aec7790d8 100644 --- a/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Hubspot/GenericFunctions.ts @@ -44,7 +44,7 @@ export async function hubspotApiRequest(this: IHookFunctions | IExecuteFunctions return await this.helpers.request!(options); } else { // @ts-ignore - return await this.helpers.requestOAuth2!.call(this, 'hubspotOAuth2Api', options, { tokenType: 'Bearer' }); + return await this.helpers.requestOAuth2!.call(this, 'hubspotOAuth2Api', options, { tokenType: 'Bearer', includeCredentialsOnRefreshOnBody: true }); } } catch (error) { let errorMessages;