From f2227ad66aefd790c3bea333c2c8812d234c6ffa Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 18 Oct 2025 22:36:22 -0500 Subject: [PATCH] Remove useless supportsOAuth property --- docs/OAUTH.md | 1 - src/pages/DeploySettings.tsx | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/OAUTH.md b/docs/OAUTH.md index 823539fc..a165759e 100644 --- a/docs/OAUTH.md +++ b/docs/OAUTH.md @@ -410,7 +410,6 @@ const newProviderOAuth = useNewProviderOAuth(); apiKeyLabel: 'Access Token', apiKeyURL: 'https://provider.com/settings/tokens', proxy: true, - supportsOAuth: true, } // In the render logic, add the OAuth hook to the switch: diff --git a/src/pages/DeploySettings.tsx b/src/pages/DeploySettings.tsx index 6c9b787e..fcf49a14 100644 --- a/src/pages/DeploySettings.tsx +++ b/src/pages/DeploySettings.tsx @@ -45,7 +45,6 @@ interface PresetProvider { apiKeyLabel?: string; apiKeyURL?: string; proxy?: boolean; - supportsOAuth?: boolean; } interface SortableProviderItemProps { @@ -206,7 +205,6 @@ const PRESET_PROVIDERS: PresetProvider[] = [ apiKeyLabel: 'Personal Access Token', apiKeyURL: 'https://app.netlify.com/user/applications#personal-access-tokens', proxy: true, - supportsOAuth: true, }, { id: 'vercel', @@ -216,7 +214,6 @@ const PRESET_PROVIDERS: PresetProvider[] = [ apiKeyLabel: 'Access Token', apiKeyURL: 'https://vercel.com/account/tokens', proxy: true, - supportsOAuth: true, }, ]; @@ -492,7 +489,7 @@ export function DeploySettings() { - ) : preset.supportsOAuth && isOAuthConfigured ? ( + ) : isOAuthConfigured ? ( // Show OAuth button if OAuth is configured