MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isSsoProvider

Function isSsoProvider

apps/host-selfhost/web/auth-config.ts:12–16  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10}
11
12const isSsoProvider = (value: unknown): value is SsoProvider =>
13 typeof value === "object" &&
14 value !== null &&
15 typeof (value as { id?: unknown }).id === "string" &&
16 typeof (value as { name?: unknown }).name === "string";
17
18export const fetchSsoProviders = async (): Promise<readonly SsoProvider[]> => {
19 const response = await fetch("/api/auth-config", { credentials: "same-origin" }).then(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected