requestTokenWithAuthCode
suspend fun requestTokenWithAuthCode(oauthMetadata: OAuth2AuthorizationServerMetadata, url: String, authorizationServer: String, state: String, scope: String? = null, authorizationDetails: Set<OpenIdAuthorizationDetails>? = null): KmmResult<TokenResponseWithDpopNonce>(source)
Uses the auth code to request an access token.
Prefers building the token request by using scope (from SupportedCredentialFormat), as advised in OpenID4VC HAIP, but falls back to authorization details if needed.
Parameters
url
the URL as it has been redirected back from the authorization server, i.e. containing param code