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:

Parameters

refreshToken

the refresh token string.