(next: SecretMap)
| 58 | } |
| 59 | |
| 60 | async 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 | |
| 65 | function encodeSecret(secret: string): string | null { |
| 66 | if (!safeStorage.isEncryptionAvailable()) { |
no test coverage detected