From a8ac288f17827955ebcf3cafa071c5ca894dbfb5 Mon Sep 17 00:00:00 2001 From: Katriel Tsepelevish Date: Thu, 19 Jan 2023 18:03:50 +0200 Subject: [PATCH] fix(todoist): Add missing OAuth redirect URL field --- packages/backend/src/apps/todoist/auth/index.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/apps/todoist/auth/index.ts b/packages/backend/src/apps/todoist/auth/index.ts index 81b38610..a7265738 100644 --- a/packages/backend/src/apps/todoist/auth/index.ts +++ b/packages/backend/src/apps/todoist/auth/index.ts @@ -4,6 +4,19 @@ import isStillVerified from './is-still-verified'; export default { fields: [ + { + key: 'oAuthRedirectUrl', + label: 'OAuth Redirect URL', + type: 'string' as const, + required: true, + readOnly: true, + value: '{WEB_APP_URL}/app/todoist/connections/add', + placeholder: null, + description: + 'When asked to input an OAuth callback or redirect URL in Todoist OAuth, enter the URL above.', + docUrl: 'https://automatisch.io/docs/todoist#oauth-redirect-url', + clickToCopy: true, + }, { key: 'screenName', label: 'Screen Name', @@ -12,8 +25,7 @@ export default { readOnly: false, value: null, placeholder: null, - description: - 'Name your connection (only used for Automatisch UI).', + description: 'Name your connection (only used for Automatisch UI).', clickToCopy: false, }, {