feat(hubspot): Implement verify credentials for OAuth

This commit is contained in:
Faruk AYDIN
2023-09-08 19:35:20 +02:00
parent b12f39916f
commit dd1e8240b8
8 changed files with 110 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
import { IField, IGlobalVariable } from '@automatisch/types';
import { URLSearchParams } from 'url';
const scopes = ['crm.objects.contacts.read', 'crm.objects.contacts.write'];
import scopes from '../common/scopes';
export default async function generateAuthUrl($: IGlobalVariable) {
const oauthRedirectUrlField = $.app.auth.fields.find(