login_chatgpt_device(
*,
store_path: Path | None = None,
client_id: str = CHATGPT_CLIENT_IDRun the ChatGPT device-code OAuth flow.
This is the headless fallback for environments without a browser. The
function prints a verification URL and user code, polls for completion,
then exchanges the resulting code via the OAuth token endpoint using
CHATGPT_DEVICE_REDIRECT_URI.
See Also:
login_chatgpt: Browser-based loopback flow preferred when a local
browser and free callback port are available.
Total seconds to wait.