refreshToken

Attempt to refresh the Token associated with this Credential.

Uses a shared orchestrator for deduplication — concurrent calls for the same credential will coalesce into a single network request.

See also

for an overload that accepts additional request parameters.


suspend fun refreshToken(extraRequestParameters: Map<String, String>): OAuth2ClientResult<Token>

Attempt to refresh the Token associated with this Credential, forwarding additional form body parameters to the token endpoint.

When extraRequestParameters is empty, delegates to refreshToken (uses the orchestrator). When non-empty, calls the token endpoint directly — bypassing the coalescing orchestrator.

Reserved keys (grant_type, client_id, refresh_token) are silently filtered out.

Parameters

extraRequestParameters

additional form parameters to forward to the token endpoint.