diff --git a/lib/issue.js b/lib/issue.js index 4e21145..c64510a 100644 --- a/lib/issue.js +++ b/lib/issue.js @@ -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(',')); }