mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
"Sign in with the Burrow client" on the account page's sign-in screen opens burrow://account?n=<nonce>; the browser asks whether to open Burrow. The client asks for a ticket with its login token (POST /account/api/client-ticket) and opens /account/client?ticket= in the browser, which signs in there. A ticket lasts 2 minutes, is good once, and signs in only the browser holding the nonce's cookie, so a burrow:// link from elsewhere signs nobody in and a ticket sent to someone else opens nothing. The tab that started it follows by itself; once it has worked in a browser, the page asks for Burrow by itself.