createCredentialRequestCwt

suspend fun createCredentialRequestCwt(requestOptions: WalletService.RequestOptions, clientNonce: String?, credentialIssuer: String?): KmmResult<CredentialRequestParameters>

Send the result as JSON-serialized content to the server at /credential (or more specific IssuerMetadata.credentialEndpointUrl). Also send along the TokenResponseParameters.accessToken from the token response in HTTP header Authorization as value Bearer <accessTokenValue> (depending on the TokenResponseParameters.tokenType).

Parameters

requestOptions

which credential in which representation to request

clientNonce

c_nonce from the token response, optional string, see TokenResponseParameters.clientNonce

credentialIssuer

credential_issuer from the metadata, see IssuerMetadata.credentialIssuer