MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / deleteAuthProfile

Function deleteAuthProfile

packages/config/src/auth-profiles.ts:102–110  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

100 * 删除一个 auth profile
101 */
102export function deleteAuthProfile(name: string): boolean {
103 const data = loadAuthProfiles()
104 if (!(name in data.profiles)) return false
105
106 delete data.profiles[name]
107 const filePath = getAuthProfilesPath()
108 fs.writeFileSync(filePath, JSON.stringify(data, null, 2), { encoding: 'utf-8', mode: 0o600 })
109 return true
110}

Callers 2

startInternalServerFunction · 0.90
startHttpServerFunction · 0.90

Calls 2

loadAuthProfilesFunction · 0.85
getAuthProfilesPathFunction · 0.85

Tested by

no test coverage detected