🐛 Fix issue with OAuth2 request (#874)

This commit is contained in:
Ricardo Espinoza
2020-08-25 18:56:19 +02:00
committed by GitHub
parent 1bf57b3c4f
commit abdda858eb
@@ -821,7 +821,7 @@ export class HttpRequest implements INodeType {
}
else if (oAuth2Api !== undefined) {
//@ts-ignore
response = await this.helpers.requestOAuth2.call(this, 'oAuth2Api', requestOptions, 'Bearer');
response = await this.helpers.requestOAuth2.call(this, 'oAuth2Api', requestOptions, { tokenType: 'Bearer' });
} else {
response = await this.helpers.request(requestOptions);
}