Skip to main content

poll_device_code

Function poll_device_code 

Source
pub async fn poll_device_code(
    device_auth_id: &str,
    user_code: &str,
) -> Result<(String, String), CodexError>
Expand description

Poll once for device authorization completion.

On success returns (authorization_code, server_issued_pkce_verifier) — feed both into exchange_code. While the user has not yet approved, returns CodexError::AuthorizationPending.

§Errors