🐛 Fix issue with OAuth2 request (#874)

This commit is contained in:
Ricardo Espinoza 2020-08-25 12:56:19 -04:00 committed by GitHub
parent 1bf57b3c4f
commit abdda858eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}