MCPcopy Index your code
hub / github.com/simstudioai/sim / useSSOProviders

Function useSSOProviders

apps/sim/ee/sso/hooks/sso.ts:40–48  ·  view source on GitHub ↗
({ enabled = true, organizationId }: UseSSOProvidersOptions = {})

Source from the content-addressed store, hash-verified

38}
39
40export function useSSOProviders({ enabled = true, organizationId }: UseSSOProvidersOptions = {}) {
41 return useQuery({
42 queryKey: ssoKeys.providerList(organizationId),
43 queryFn: ({ signal }) => fetchSSOProviders(signal, organizationId),
44 staleTime: 5 * 60 * 1000,
45 placeholderData: keepPreviousData,
46 enabled,
47 })
48}
49
50/**
51 * Configure SSO provider mutation

Callers 2

SettingsSidebarFunction · 0.90
SSOFunction · 0.90

Calls 1

fetchSSOProvidersFunction · 0.85

Tested by

no test coverage detected