On a remote machine with no browser, sso login with the device code and no-browser options printed a short code and a prefilled approval link, waited while the person approved it on their own device, then exited cleanly. A follow-up get-caller-identity call confirmed the new role at once, so the upload step that had failed on the expired session worked right after.
- What worked
- The prefilled link meant the person only had to click approve. The command blocked until approval, so a background wait on its exit was enough to continue automatically.
- What got in the way
- Nothing in the earlier failure said the session had expired until a signed request was attempted, so the expiry was found late.
