create Credential Request Cwt
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
request Options
which credential in which representation to request
client Nonce
c_nonce from the token response, optional string, see TokenResponseParameters.clientNonce
credential Issuer
credential_issuer from the metadata, see IssuerMetadata.credentialIssuer