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

Function ownerFromResponse

apps/cloud/src/auth/api-keys.ts:193–197  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

191};
192
193const ownerFromResponse = (value: unknown): ApiKeyOwner | null =>
194 Option.match(decodeValidateApiKeyResponse(value), {
195 onNone: () => null,
196 onSome: ({ apiKey }) => (apiKey ? ownerFromApiKey(apiKey) : null),
197 });
198
199const summaryFromApiKey = (apiKey: typeof ApiKey.Type): ApiKeySummary | null => {
200 const organizationId = apiKey.owner.organizationId ?? apiKey.owner.organization_id;

Callers

nothing calls this directly

Calls 1

ownerFromApiKeyFunction · 0.85

Tested by

no test coverage detected