Allow empty values for secrets

This commit is contained in:
Tuan Dang
2023-01-27 22:07:56 +07:00
parent d09b406c4e
commit 13acb19e9f
3 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ router.post(
!secret.secretKeyCiphertext ||
!secret.secretKeyIV ||
!secret.secretKeyTag ||
!secret.secretValueCiphertext ||
(typeof secret.secretValueCiphertext !== 'string') ||
!secret.secretValueIV ||
!secret.secretValueTag
) {