MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSecureStorage

Function getSecureStorage

src/utils/secureStorage/index.ts:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * Get the appropriate secure storage implementation for the current platform
8 */
9export function getSecureStorage(): SecureStorage {
10 if (process.platform === 'darwin') {
11 return createFallbackStorage(macOsKeychainStorage, plainTextStorage)
12 }
13
14 // TODO: add libsecret support for Linux
15
16 return plainTextStorage
17}

Callers 15

status.test.tsFile · 0.85
saveOAuthTokensIfNeededFunction · 0.85
auth.tsFile · 0.85
betas.test.tsFile · 0.85
savePluginOptionsFunction · 0.85

Calls 1

createFallbackStorageFunction · 0.85

Tested by

no test coverage detected