mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Fix issue with OAuth2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user