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

19 lines
466 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-10-19 10:57:50 -07:00
const scopes = ['https://www.googleapis.com/auth/books'];
2020-10-19 10:57:50 -07:00
export class GoogleBooksOAuth2Api implements ICredentialType {
name = 'googleBooksOAuth2Api';
extends = ['googleOAuth2Api'];
2020-10-19 10:57:50 -07:00
displayName = 'Google Books OAuth2 API';
documentationUrl = 'google';
properties: INodeProperties[] = [
2020-10-19 10:57:50 -07:00
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-10-19 10:57:50 -07:00
default: scopes.join(' '),
},
];
}