feat: burrow:// links sign the account page in

The account page's "Sign in with the Burrow client" opens
burrow://account?n=<nonce>. The copy already running takes the link (a
copy started with one gives way at once); it uses the account being
played, or the one remembered for its server (a choice when there are
several), gets a ticket from the server and opens it in the browser.
Installed copies register the protocol when they start; the Windows
installer, the Linux packages and the macOS app declare it too.
This commit is contained in:
Burrowdev committed 2026-10-23 07:04:45 +03:00
1 parent b1dd733a9d
commit b52c9194f5
6 files changed
+154 -11

No files matched your search

+2
View File
@@ -32,4 +32,6 @@ contextBridge.exposeInMainWorld("client", {
presence: info => ipcRenderer.send("presence", info),
onFullscreen: listener => ipcRenderer.on("fullscreen", (event, on) => listener(on)),
onShortcut: listener => ipcRenderer.on("shortcut", (event, key) => listener(key)),
// the server's account page asking to be signed in (main.js): its nonce.
onAccountLink: listener => ipcRenderer.on("accountLink", (event, nonce) => listener(String(nonce))),
});