diff --git a/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts index e61680011f..cf052f0f52 100644 --- a/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleCalendarOAuth2Api.credentials.ts @@ -8,12 +8,12 @@ const scopes = [ 'https://www.googleapis.com/auth/calendar.events', ]; -export class GoogleOAuth2Api implements ICredentialType { - name = 'googleOAuth2Api'; +export class GoogleCalendarOAuth2Api implements ICredentialType { + name = 'googleCalendarOAuth2Api'; extends = [ - 'oAuth2Api', + 'googleOAuth2Api', ]; - displayName = 'Google OAuth2 API'; + displayName = 'Google Calendar OAuth2 API'; properties = [ { displayName: 'Scope', diff --git a/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts index 081540368a..f1e00a0ad9 100644 --- a/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleSheetsOAuth2Api.credentials.ts @@ -14,7 +14,7 @@ export class GoogleSheetsOAuth2Api implements ICredentialType { extends = [ 'googleOAuth2Api', ]; - displayName = 'Google OAuth2 API'; + displayName = 'Google Sheets OAuth2 API'; properties = [ { displayName: 'Scope', diff --git a/packages/nodes-base/nodes/Github/GenericFunctions.ts b/packages/nodes-base/nodes/Github/GenericFunctions.ts index 688c3e499e..f6c5d076c6 100644 --- a/packages/nodes-base/nodes/Github/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Github/GenericFunctions.ts @@ -50,7 +50,7 @@ export async function githubApiRequest(this: IHookFunctions | IExecuteFunctions, const baseUrl = credentials!.server || 'https://api.github.com'; options.uri = `${baseUrl}${endpoint}`; - //@ts-ignore + return await this.helpers.requestOAuth.call(this, 'githubOAuth2Api', options); } } catch (error) { diff --git a/packages/nodes-base/nodes/Github/Github.node.ts b/packages/nodes-base/nodes/Github/Github.node.ts index 6e0df194ec..00133ec302 100644 --- a/packages/nodes-base/nodes/Github/Github.node.ts +++ b/packages/nodes-base/nodes/Github/Github.node.ts @@ -47,7 +47,7 @@ export class Github implements INodeType { displayOptions: { show: { authentication: [ - 'oauth2', + 'oAuth2', ], }, }, @@ -65,7 +65,7 @@ export class Github implements INodeType { }, { name: 'OAuth2', - value: 'oauth2', + value: 'oAuth2', }, ], default: 'accessToken', diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts index b53062500e..90e4e8b1fd 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts @@ -53,7 +53,7 @@ export class GoogleSheets implements INodeType { displayOptions: { show: { authentication: [ - 'oauth2', + 'oAuth2', ], }, }, @@ -71,7 +71,7 @@ export class GoogleSheets implements INodeType { }, { name: 'OAuth2', - value: 'oauth2', + value: 'oAuth2', }, ], default: 'serviceAccount', diff --git a/packages/nodes-base/nodes/Slack/Slack.node.ts b/packages/nodes-base/nodes/Slack/Slack.node.ts index b4d8032b77..57fe569d22 100644 --- a/packages/nodes-base/nodes/Slack/Slack.node.ts +++ b/packages/nodes-base/nodes/Slack/Slack.node.ts @@ -110,7 +110,7 @@ export class Slack implements INodeType { displayOptions: { show: { authentication: [ - 'oauth2', + 'oAuth2', ], }, }, @@ -128,7 +128,7 @@ export class Slack implements INodeType { }, { name: 'OAuth2', - value: 'oauth2', + value: 'oAuth2', }, ], default: 'accessToken',