mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-19 01:37:50 -05:00
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:
1 parent
b1dd733a9d
commit
b52c9194f5
6 files changed
+154
-11
No files matched your search
@@ -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))),
|
||||
});
|
||||
Reference in new issue
Block a user