(key: string)
| 168 | } |
| 169 | |
| 170 | export async function remove(key: string) { |
| 171 | const file = Bun.file(filepath) |
| 172 | const data = await readLocalAuth() |
| 173 | delete data[key] |
| 174 | await Bun.write(file, JSON.stringify(data, null, 2)) |
| 175 | await fs.chmod(file.name!, 0o600) |
| 176 | } |
| 177 | |
| 178 | export async function external(): Promise<Record<string, Info>> { |
| 179 | return loadExternalAuth() |
nothing calls this directly
no test coverage detected