MCPcopy Create free account
hub / github.com/Microck/opencode-studio / listAuthProfiles

Function listAuthProfiles

server/index.js:2792–2800  ·  view source on GitHub ↗
(p, activePlugin)

Source from the content-addressed store, hash-verified

2790};
2791
2792const listAuthProfiles = (p, activePlugin) => {
2793 const d = getProfileDir(p, activePlugin);
2794 if (!fs.existsSync(d)) return [];
2795 try {
2796 const files = fs.readdirSync(d).filter(f => f.endsWith('.json'));
2797 console.log(`[Auth] listAuthProfiles(${p}): dir=${d}, count=${files.length}`);
2798 return files.map(f => f.replace('.json', ''));
2799 } catch { return []; }
2800};
2801
2802app.get('/api/auth/providers', (req, res) => {
2803 const providers = [

Callers 1

index.jsFile · 0.85

Calls 1

getProfileDirFunction · 0.85

Tested by

no test coverage detected