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
CodexError::AuthorizationPendingwhile waiting for the user.CodexError::Apion expired or invalid device codes.