diff --git a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt index 7150d67..1373c63 100644 --- a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt +++ b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt @@ -193,7 +193,7 @@ class SSIKit2WalletService(accountId: UUID, walletId: UUID) : WalletService(acco println("Resolved presentation definition: ${presentationSession.authorizationRequest!!.presentationDefinition!!.toJSONString()}") - val tokenResponse = credentialWallet.processImplicitFlowAuthorization(presentationSession.authorizationRequest!!) + val tokenResponse = credentialWallet.processTokenRequest(TokenRequest(GrantType.implicit, clientId = presentationSession.authorizationRequest.clientId)) val resp = ktorClient.submitForm(presentationSession.authorizationRequest!!.responseUri!!, parameters { tokenResponse.toHttpParameters().forEach { entry ->