🐛 Add credentials in the body to be able to refresh the access token (#1543)

This commit is contained in:
Ricardo Espinoza 2021-03-18 07:27:19 -04:00 committed by GitHub
parent dbe70ea1e0
commit c39504719a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export async function stravaApiRequest(this: IExecuteFunctions | IExecuteSingleF
} else {
//@ts-ignore
return await this.helpers.requestOAuth2.call(this, 'stravaOAuth2Api', options);
return await this.helpers.requestOAuth2.call(this, 'stravaOAuth2Api', options, { includeCredentialsOnRefreshOnBody: true });
}
} catch (error) {