Now OAuth2 send authentication data in the body (#1241)

This commit is contained in:
Ricardo Espinoza
2020-12-12 11:00:57 -05:00
committed by GitHub
parent 46e6212750
commit 18313e1199
3 changed files with 6 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export async function mauticApiRequest(this: IHookFunctions | IExecuteFunctions
options.uri = `${credentials.url}${options.uri}`;
//@ts-ignore
returnData = await this.helpers.requestOAuth2.call(this, 'mauticOAuth2Api', options);
returnData = await this.helpers.requestOAuth2.call(this, 'mauticOAuth2Api', options, { includeCredentialsOnRefreshOnBody: true });
}
if (returnData.errors) {