Skip to main content

poll_copilot_device_flow

Function poll_copilot_device_flow 

Source
pub async fn poll_copilot_device_flow(
    config: &CopilotOAuthConfig,
    device_code: &str,
) -> DeviceFlowPollResult
Expand description

Poll the GitHub device flow token endpoint.

Call this repeatedly at the interval specified in DeviceCodeResponse until the result is not DeviceFlowPollResult::Pending.