Fix issue with OAuth2

This commit is contained in:
ricardo
2020-07-08 15:15:25 -04:00
parent de7a6d6dfb
commit c6e060904e
3 changed files with 17 additions and 25 deletions

View File

@@ -33,7 +33,8 @@ export async function bitlyApiRequest(this: IHookFunctions | IExecuteFunctions |
return await this.helpers.request!(options);
} else {
return await this.helpers.requestOAuth2!.call(this, 'bitlyOAuth2Api', options);
//@ts-ignore
return await this.helpers.requestOAuth2!.call(this, 'bitlyOAuth2Api', options, 'Bearer');
}
} catch(error) {
throw new Error(error);