From 7774910292541c48599309268cfe2656af057d62 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 12 Apr 2024 01:59:51 +0200 Subject: [PATCH] Fix cert required (#1057) --- lib/validate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/validate.js b/lib/validate.js index 1baa31c9..446b1731 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -159,6 +159,7 @@ const hexOrBase64Validator = string().test({ name: 'hex-or-base64', message: 'invalid encoding', test: (val) => { + if (typeof val === 'undefined') return true try { ensureB64(val) return true