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

24 lines
476 B
TypeScript
Raw Normal View History

import {
ICredentialType,
NodePropertyTypes,
} 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';
extends = ['googleOAuth2Api'];
displayName = 'Google Tasks OAuth2 API';
documentationUrl = 'google';
2020-06-15 15:47:44 -07:00
properties = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' ')
},
2020-06-15 15:47:44 -07:00
];
}