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

Function saveFallbackSecrets

apps/desktop/src/main/secret-store.ts:60–63  ·  view source on GitHub ↗
(next: SecretMap)

Source from the content-addressed store, hash-verified

58}
59
60async function saveFallbackSecrets(next: SecretMap): Promise<void> {
61 await fs.mkdir(path.dirname(fallbackPath()), { recursive: true })
62 await fs.writeFile(fallbackPath(), JSON.stringify(next, null, 2), 'utf8')
63}
64
65function encodeSecret(secret: string): string | null {
66 if (!safeStorage.isEncryptionAvailable()) {

Callers 2

setRemoteWorkspaceSecretFunction · 0.85

Calls 1

fallbackPathFunction · 0.85

Tested by

no test coverage detected