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
moshcode login --device: RFC 8628-style device flow — CLI prints a short
XXXX-XXXX code + URL, you approve at app.moshcode.sh/device in ANY browser,
CLI polls until authorized. No browser/loopback on the box, so it works on
servers and CI. Auto-selected when stdin isn't a TTY. (migration 004)
App: /cli/device/code, /cli/device/token (machine, CSRF-exempt), /device
approve page; single-use codes; claimed→expired. Verified E2E.
Dashboard push button is now a toggle: reflects whether THIS device is
subscribed and flips between "Enable push" and "Disable notifications on this
device" (+ /push/unsubscribe).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
<h1 style="font-size:1.4rem;margin:10px 0">Connect a device</h1>
132
+
${done ? `<div class="notice ok">✓ device connected — return to your terminal 🤘</div>`
133
+
: `<p class="dim mono" style="font-size:.82rem">Enter the code shown in your terminal to authorize the moshcode CLI as <b>${esc(req.user.email||req.user.display_name)}</b>.</p>
134
+
${bad ? `<div class="notice err">that code is invalid or expired — check your terminal.</div>` : ""}
0 commit comments