Remove useless supportsOAuth property

This commit is contained in:
Alex Gleason committed 2025-10-18 22:36:22 -05:00
1 parent f8542e56db
commit f2227ad66a
2 files changed
+1 -5

No files matched your search

-1
View File
@@ -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:
+1 -4
View File
@@ -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() {
</Link>
</Button>
</div>
) : preset.supportsOAuth && isOAuthConfigured ? (
) : isOAuthConfigured ? (
// Show OAuth button if OAuth is configured
<div className="space-y-3">
<Button