Skip to content

Commit

Permalink
fix: response in the usePresentationRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Feb 24, 2025
1 parent a89c220 commit 3057d8b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import java.security.cert.CertificateFactory
import java.security.cert.X509Certificate
import java.security.spec.PKCS8EncodedKeySpec
import java.security.spec.X509EncodedKeySpec
import java.util.Base64
import java.util.*

class VerificationUseCase(
val http: HttpClient, cryptoProvider: JWTCryptoProvider,
Expand Down Expand Up @@ -175,9 +175,9 @@ class VerificationUseCase(

logger.debug { "Presentation failed, redirecting to: $redirectUri" }

if (redirectUri != null) {
return Result.failure(Exception(redirectUri))
}
// if (redirectUri != null) {
// return Result.failure(Exception(redirectUri))
// }

return if (policyResults == null) {
Result.failure(FailedVerificationException(redirectUri, IllegalArgumentException("Verification policies did not succeed")))
Expand Down

0 comments on commit 3057d8b

Please sign in to comment.