loadCredentialWithOfferReturningResult

suspend fun loadCredentialWithOfferReturningResult(credentialOffer: CredentialOffer, credentialIdentifierInfo: CredentialIdentifierInfo, transactionCode: String? = null, authorizationServerMetadata: OAuth2AuthorizationServerMetadata? = null): KmmResult<CredentialIssuanceResult>(source)

Loads a user-selected credential with pre-authorized code from the OID4VCI credential issuer

Parameters

credentialOffer

as loaded and decoded from the QR Code

credentialIdentifierInfo

as selected by the user from the issuer's metadata

transactionCode

if required from Issuing service, i.e. transmitted out-of-band to the user

authorizationServerMetadata

oauthMetadata optionally transmitted via the DC API. Set to null for other flows as it will be fetched from the authorizationServer/credentialIssuer.


suspend fun loadCredentialWithOfferReturningResult(credentialOffer: CredentialOffer, credentialIdentifierInfos: NonEmptyList<CredentialIdentifierInfo>, transactionCode: String? = null, authorizationServerMetadata: OAuth2AuthorizationServerMetadata? = null): KmmResult<CredentialIssuanceResult>(source)

Loads some user-selected credentials with pre-authorized code from the OID4VCI credential issuer, with one token for all of them, as a pre-authorized code can usually be used only once

Parameters

credentialOffer

as loaded and decoded from the QR Code

credentialIdentifierInfos

as selected by the user from the issuer's metadata, all of the same credential issuer

transactionCode

if required from Issuing service, i.e. transmitted out-of-band to the user

authorizationServerMetadata

oauthMetadata optionally transmitted via the DC API. Set to null for other flows as it will be fetched from the authorizationServer/credentialIssuer.