Skip to content

Commit

Permalink
move signature log entries before expiry check
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Sep 30, 2024
1 parent 0a19d89 commit c932403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});

Expand All @@ -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});
}
Expand Down

0 comments on commit c932403

Please sign in to comment.