finalizeAuthorizationResponse

suspend fun finalizeAuthorizationResponse(state: DcApiPreparationState, credentialPresentation: CredentialPresentation? = null): KmmResult<DigitalCredentialInterface>(source)

Creates a protocol-agnostic response to return through the browser's Digital Credentials API.

Encode the result with toAndroidDcApiResponseJson() on Android or, for an Annex C request, toIosIsoMdocResponseBytes() on iOS. Annex C requires a CredentialPresentation.PresentationExchangePresentation; OpenID4VP uses the presentation type requested by its CredentialPresentationRequest.