resume
abstract suspend fun resume(flowContext: DeviceAuthorizationFlowContext): ERROR CLASS: Symbol not found for Result<ERROR CLASS: Symbol not found for TokenInfo>
Polls the token endpoint until the user authorizes or the session expires.
Should be called repeatedly after start. Retries automatically on authorization_pending and slow_down errors per RFC 8628 §3.5.
Return
Result.success with TokenInfo on authorization, or Result.failure with:
TimeoutException if DeviceAuthorizationFlowContext.expiresIn elapses.
com.okta.authfoundation.client.OAuth2ClientResult.Error.HttpResponseException on non-recoverable server errors.
Other exceptions for network failures.
Parameters
flowContext
the context returned from start.