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

Function readAuthFile

apps/local/src/db/v1-v2-migration.ts:633–636  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

631type AuthFile = Record<string, string | Record<string, string>>;
632
633const readAuthFile = (path: string): AuthFile => {
634 if (!fs.existsSync(path)) return {};
635 return JSON.parse(fs.readFileSync(path, "utf-8")) as AuthFile;
636};
637
638const readScopedFileSecret = (auth: AuthFile, scopeId: string, secretId: string): string | null => {
639 const scoped = auth[scopeId];

Callers 2

providerGetFunction · 0.70
collectSecretValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected