MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / deleteRemoteWorkspaceSecret

Function deleteRemoteWorkspaceSecret

apps/desktop/src/main/secret-store.ts:131–145  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

129}
130
131export async function deleteRemoteWorkspaceSecret(id: string): Promise<void> {
132 const normalizedId = id.trim()
133 if (!normalizedId) return
134
135 const keytar = await loadKeytar()
136 if (keytar) {
137 await keytar.deletePassword(KEYTAR_SERVICE, accountName(normalizedId))
138 return
139 }
140
141 const fallback = await loadFallbackSecrets()
142 if (!(normalizedId in fallback)) return
143 delete fallback[normalizedId]
144 await saveFallbackSecrets(fallback)
145}

Callers 2

Calls 4

loadKeytarFunction · 0.85
accountNameFunction · 0.85
loadFallbackSecretsFunction · 0.85
saveFallbackSecretsFunction · 0.85

Tested by

no test coverage detected