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

Function resolveFileAuthPath

apps/local/src/db/v1-v2-migration.ts:622–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620};
621
622const resolveFileAuthPath = (): string => {
623 const xdg =
624 process.env.XDG_DATA_HOME?.trim() ||
625 (process.platform === "win32"
626 ? process.env.LOCALAPPDATA || process.env.APPDATA || join(homedir(), "AppData", "Local")
627 : join(homedir(), ".local", "share"));
628 return join(xdg, "executor", "auth.json");
629};
630
631type AuthFile = Record<string, string | Record<string, string>>;
632

Callers 4

providerGetFunction · 0.85
collectSecretValuesFunction · 0.85
writeMigratedSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected