From c9324032f29635b49275a36dbde0112e0b6cc0ff Mon Sep 17 00:00:00 2001 From: James Chartrand Date: Thu, 26 Sep 2024 10:34:36 -0400 Subject: [PATCH] move signature log entries before expiry check --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 8fd12832..b0996cef 100644 --- a/lib/index.js +++ b/lib/index.js @@ -352,6 +352,9 @@ async function _verifyCredential(options = {}) { } } + log.push({id: 'valid_signature', valid: true}); + log.push({id: 'issuer_did_resolves', valid: true}); + // run common credential checks (add check results to log) _checkCredential({credential, log, now}); @@ -362,9 +365,6 @@ async function _verifyCredential(options = {}) { '"credentialStatus".'); } - log.push({id: 'valid_signature', valid: true}); - log.push({id: 'issuer_did_resolves', valid: true}); - if(credential.credentialStatus) { await addStatusInfoToLog({options, result, log}); }