Skip to content

Commit

Permalink
chore: removed new error in toWrappedVerifiablePresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 8, 2025
1 parent 9a6ccb7 commit aa4cb0a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/ssi-types/src/mapper/credential-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ export class CredentialMapper {
}
}

if (typeof originalPresentation === 'string' && !CredentialMapper.isJwtEncoded(originalPresentation)) {
throw Error(`Unknown presentation type, the vp is a string, but not JWT or MDOC encoded`)
}

// If the VP is not an encoded/decoded SD-JWT, we assume it will be a W3C VC
const proof = CredentialMapper.getFirstProof(originalPresentation)
const original =
Expand Down

0 comments on commit aa4cb0a

Please sign in to comment.