From 983d03b4b44cb77a25fc0d2ac63e1f5da93e30f9 Mon Sep 17 00:00:00 2001 From: nael Date: Wed, 14 Aug 2024 04:57:16 +0200 Subject: [PATCH] :bug: Lint fixed --- packages/shared/src/authUrl.ts | 4 ++-- packages/shared/src/connectors/metadata.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/shared/src/authUrl.ts b/packages/shared/src/authUrl.ts index c767f7c4b..6b7d66e72 100644 --- a/packages/shared/src/authUrl.ts +++ b/packages/shared/src/authUrl.ts @@ -185,7 +185,7 @@ const handleOAuth2Url = async ({ const url = new URL(BASE_URL); BASE_URL = url.origin + url.pathname; const resource = url.searchParams.get('resource'); - let scopeValue = `https://${resource}/.default offline_access`; + const scopeValue = `https://${resource}/.default offline_access`; params += `&scope=${encodeURIComponent(scopeValue)}`; } else if (providerName === 'deel') { params += `&scope=${encodeURIComponent(scopes.replace(/\t/g, ' '))}`; @@ -242,4 +242,4 @@ const handleApiKeyUrl = async () => { const handleBasicUrl = async () => { // Placeholder for basic auth handling return; -} \ No newline at end of file +} diff --git a/packages/shared/src/connectors/metadata.ts b/packages/shared/src/connectors/metadata.ts index 352256ead..2da77abc4 100644 --- a/packages/shared/src/connectors/metadata.ts +++ b/packages/shared/src/connectors/metadata.ts @@ -2937,7 +2937,7 @@ export const CONNECTORS_METADATA: ProvidersConfig = { logoPath: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSHiusc7S5-BoiU1YKCztJMv_Qj7wlim4TwbA&s', description: 'Sync & Create orders, fulfillments, fulfillment orders, customers and products', active: true, - primaryColor: "#702963", + primaryColor: '#702963', authStrategy: { strategy: AuthStrategy.basic, properties: ['username', 'password', 'store_url']