(ciphertext: string)
| 16 | * encryption-format drift. |
| 17 | */ |
| 18 | export async function decryptCredentials<T>(ciphertext: string): Promise<T> { |
| 19 | const { decrypted } = await decryptSecret(ciphertext) |
| 20 | return JSON.parse(decrypted) as T |
| 21 | } |
no test coverage detected