refreshToken

open suspend override fun refreshToken(): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/credential/kmp/Credential>

Refreshes the token and returns a new credential snapshot.

Uses a shared CoalescingOrchestrator for deduplication across all snapshots of the same credential ID.

Return

Result.success with a new CredentialImpl snapshot, or Result.failure.


open suspend override fun refreshToken(extraRequestParameters: Map<String, String>): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/credential/kmp/Credential>

Refreshes the token with extra request parameters, bypassing the coalescing orchestrator.

When extraRequestParameters is empty, delegates to refreshToken (uses the orchestrator). When non-empty, calls the token endpoint directly — each call is a new network request.

Return

Result.success with a new CredentialImpl snapshot, or Result.failure.

Parameters

extraRequestParameters

additional form parameters forwarded to the token endpoint.