Skip to content

Commit

Permalink
fix: remove unnecessary if block
Browse files Browse the repository at this point in the history
  • Loading branch information
DJHunn39 committed Oct 29, 2024
1 parent b68a201 commit 0de69d7
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,14 +643,6 @@ export class OpenId4VcSiopVerifierService {
isValid = verificationResult.isValid
}

// FIXME: we throw an error here as there's a bug in sphereon library where they
// don't check the returned 'verified' property and only catch errors thrown.
// Once https://github.com/Sphereon-Opensource/SIOP-OID4VP/pull/70 is merged we
// can remove this.
if (!isValid) {
throw new CredoError('Presentation verification failed.')
}

return {
verified: isValid,
}
Expand Down

0 comments on commit 0de69d7

Please sign in to comment.