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

Function readScopedFileSecret

apps/local/src/db/v1-v2-migration.ts:638–645  ·  view source on GitHub ↗
(auth: AuthFile, scopeId: string, secretId: string)

Source from the content-addressed store, hash-verified

636};
637
638const readScopedFileSecret = (auth: AuthFile, scopeId: string, secretId: string): string | null => {
639 const scoped = auth[scopeId];
640 if (scoped && typeof scoped === "object" && !Array.isArray(scoped)) {
641 return scoped[secretId] ?? null;
642 }
643 const flat = auth[secretId];
644 return typeof flat === "string" ? flat : null;
645};
646
647const flatAuthEntries = (auth: AuthFile): Record<string, string> => {
648 const out: Record<string, string> = {};

Callers 1

providerGetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected