(encoded: string)
| 80 | } |
| 81 | |
| 82 | function decodeSecret(encoded: string): string | null { |
| 83 | if (!safeStorage.isEncryptionAvailable()) return null |
| 84 | try { |
| 85 | return safeStorage.decryptString(Buffer.from(encoded, 'base64')) |
| 86 | } catch { |
| 87 | return null |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | export async function getRemoteWorkspaceSecret(id: string): Promise<string | null> { |
| 92 | const normalizedId = id.trim() |
no outgoing calls
no test coverage detected