diff --git a/Sources/eudiWalletOidcIos/Service/IssueService.swift b/Sources/eudiWalletOidcIos/Service/IssueService.swift index 2aed917..63225bf 100644 --- a/Sources/eudiWalletOidcIos/Service/IssueService.swift +++ b/Sources/eudiWalletOidcIos/Service/IssueService.swift @@ -169,7 +169,10 @@ public class IssueService: NSObject, IssueServiceProtocol { } - if responseUrl.contains("code=") || responseUrl.contains("error=") || responseUrl.contains("presentation_definition="){ + if responseUrl.contains("code=") || + responseUrl.contains("error=") || + responseUrl.contains("presentation_definition=") || + (responseUrl.contains("request_uri=") && !responseUrl.contains("response_type=") && !responseUrl.contains("state=")){ return responseUrl } else { // if 'code' is not present