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

Function sourceOf

packages/react/src/lib/shared-auth-method-codec.ts:175–176  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

173 : (method as T);
174
175const sourceOf = (slug: string): "spec" | "custom" =>
176 slug.startsWith("custom_") ? "custom" : "spec";
177
178/** Project one stored apikey/none method into the presentational `AuthMethod`
179 * the hub renders (mirrors the server's catalog projection). */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected