Skip to content

Commit

Permalink
Fix enveloped VC type check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed May 21, 2024
1 parent c924ae8 commit ba146ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function issue({config, credential, updateValidity = true} = {}) {

function _isEnvelopedCredential({verifiableCredential} = {}) {
return (verifiableCredential['@context'] === CREDENTIALS_CONTEXT_V2_URL &&
verifiableCredential.type === 'EnvelopedCredential' &&
verifiableCredential.type === 'EnvelopedVerifiableCredential' &&
verifiableCredential.id?.startsWith('data:') &&
verifiableCredential.id.includes(','));
}

0 comments on commit ba146ff

Please sign in to comment.