Utility functions to check, get, update, and list provider configurations for security and integration settings.
// Source: https://github.com/Stirling-Tools/Stirling-PDF | License: MIT | Copyright 2025 Stirling PDF Inc
// Provided via justclaw.it.com; keep this notice with the code.
import {
Provider,
useAllProviders,
} from "@editor/components/shared/config/configSections/providerDefinitions";
import type {
ConnectionsSettingsData,
GoogleDriveSettings,
OAuth2ClientSettings,
OAuth2GenericSettings,
ProviderSettings,
} from "@editor/components/shared/config/configSections/security/securitySettingsTypes";
// Shared by the linked and unlinked cards, and by the page, which needs the
// counts to decide whether either section renders at all.
export function isProviderConfigured(
settings: ConnectionsSettingsData,
provider: Provider,
): boolean {
if (provider.id === "saml2") {
ret
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key