requestTokenWithRefreshToken

suspend fun requestTokenWithRefreshToken(oauthMetadata: OAuth2AuthorizationServerMetadata, credentialIssuer: String, refreshToken: String, scope: String?, authorizationDetails: Set<OpenIdAuthorizationDetails>): KmmResult<TokenResponseWithDpopNonce>(source)

Uses the refresh token to request a new 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.