refreshToken
suspend fun refreshToken(refreshToken: String): ERROR CLASS: Symbol not found for Result<com/okta/authfoundation/client/TokenInfo>
Attempt to refresh a token using the provided refresh token string.
On success, a TokenRefreshedEvent is emitted on events. If an IdTokenValidator is configured, the ID token is validated before the event is emitted.
Return
Result.success with the new TokenInfo, or Result.failure with:
OAuth2ClientResult.Error.OidcEndpointsNotAvailableException if endpoints cannot be resolved.
OAuth2ClientResult.Error.HttpResponseException if the server returns an error.
IdTokenValidator.Error if ID token validation fails.
Other exceptions for network or parsing failures.
Parameters
refreshToken
the refresh token string.