prepareCredentialRequests

fun prepareCredentialRequests(metadata: IssuerMetadata, tokenResponse: TokenResponseParameters, credentialFormats: Set<SupportedCredentialFormat>, previouslyRequestedScope: String? = null): KmmResult<Collection<OpenId4VciClient.PreparedCredentialRequest>>(source)

Prepares the credential requests the access token of tokenResponse grants for the credentials of credentialFormats, with OpenId4VciClient.prepareCredentialRequests: one per credential, each with the configuration its proof and response depend on. Create each one with createCredential right before sending it.

Parameters

previouslyRequestedScope

the scope value requested in the token request, since the authorization server may not set it in tokenResponse