n8n/packages/nodes-base/credentials/GoogleTasksOAuth2Api.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
496 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-06-15 15:47:44 -07:00
const scopes = ['https://www.googleapis.com/auth/tasks'];
2020-06-15 15:47:44 -07:00
export class GoogleTasksOAuth2Api implements ICredentialType {
name = 'googleTasksOAuth2Api';
2020-06-15 15:47:44 -07:00
extends = ['googleOAuth2Api'];
2020-06-15 15:47:44 -07:00
displayName = 'Google Tasks OAuth2 API';
documentationUrl = 'google/oauth-single-service';
properties: INodeProperties[] = [
2020-06-15 15:47:44 -07:00
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-10-22 06:46:03 -07:00
default: scopes.join(' '),
},
2020-06-15 15:47:44 -07:00
];
}