You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
min auth login --device drops GitHub's error when GitHub refuses the device-code request #3576
On nightly 0.8.0-dev.463 (macOS), min auth login --device once failed with:
error: GitHub refused the sign-in request to https://github.com/login/device/code (400 Bad Request)
An immediate retry succeeded. The cause cannot be seen, because min keeps only the HTTP status and drops the reply body, where GitHub puts error and error_description (for example slow_down, device_flow_disabled, or a rate limit).
Expected
When GitHub refuses the request and its reply carries error / error_description, the message includes them, so the user and a bug report can tell a transient refusal from a configuration one. Where the error is known to be transient, the message says to run min auth login --device again.
Where
crates/minimal/src/cmd/auth.rs: post_form, which calls send_form and, when the status is not a success, bails with GitHub refused the sign-in request to {url} ({status}) without reading text.
Activity
norrietaylor commentedon Nov 19, 2026
Fixed by #3608 (task #3584).