From c4bbb961a2b41709d525acff7b54e29e1a034596 Mon Sep 17 00:00:00 2001 From: ricardo Date: Sun, 14 Jun 2020 19:31:45 -0400 Subject: [PATCH] :zap: Improvements to Typeform-Node --- .../credentials/TypeformOAuth2Api.credentials.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts b/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts index 6e95391577..a876e87ed0 100644 --- a/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/TypeformOAuth2Api.credentials.ts @@ -3,6 +3,12 @@ import { NodePropertyTypes, } from 'n8n-workflow'; +const scopes = [ + 'webhooks:write', + 'webhooks:read', + 'forms:read', +]; + export class TypeformOAuth2Api implements ICredentialType { name = 'typeformOAuth2Api'; @@ -28,8 +34,8 @@ export class TypeformOAuth2Api implements ICredentialType { { displayName: 'Scope', name: 'scope', - type: 'string' as NodePropertyTypes, - default: 'webhooks:write,webhooks:read,forms:read,', + type: 'hidden' as NodePropertyTypes, + default: scopes.join(','), }, { displayName: 'Auth URI Query Parameters',