▾ modified README.md +2 -1 Viewed
@@ -58,7 +58,8 @@ job: POST the fragment back to itself. What comes back is a single-use SASL 58 58 from the durable one at `/session` and skip the browser. 59 59 60 60 The durable token is saved to `$XDG_CONFIG_HOME/frq/session.edn` (mode 600) so 61 - a restart resumes without one, along with the handle and nick it belongs to. 61 + a restart resumes without one, along with the handle and nick it belongs to — 62 + and it connects on its own at launch when one is there. 62 63 The web-token beside it is single-use and deliberately not saved. A token the 63 64 broker no longer honours is dropped — from disk and memory — and the browser 64 65 flow runs once more, rather than failing the same way on every Connect.
@@ -58,7 +58,8 @@ job: POST the fragment back to itself. What comes back is a single-use SASL 58 from the durable one at `/session` and skip the browser. 58 from the durable one at `/session` and skip the browser. 59 59 60 The durable token is saved to `$XDG_CONFIG_HOME/frq/session.edn` (mode 600) so 60 The durable token is saved to `$XDG_CONFIG_HOME/frq/session.edn` (mode 600) so 61 - a restart resumes without one, along with the handle and nick it belongs to. 61 + a restart resumes without one, along with the handle and nick it belongs to — 62 + and it connects on its own at launch when one is there. 62 The web-token beside it is single-use and deliberately not saved. A token the 63 The web-token beside it is single-use and deliberately not saved. A token the 63 broker no longer honours is dropped — from disk and memory — and the browser 64 broker no longer honours is dropped — from disk and memory — and the browser 64 flow runs once more, rather than failing the same way on every Connect. 65 flow runs once more, rather than failing the same way on every Connect.
▾ modified src/frq/app.jolt +8 -1 Viewed
@@ -367,5 +367,12 @@ 367 367 (defn -main [& _] 368 368 ;; Before the window: a saved sign-in decides which mode the connect screen 369 369 ;; opens in, and what it says. 370 - (s/restore-session!) 370 + (when (s/restore-session!) 371 + ;; And then it connects on its own. A remembered account has already said 372 + ;; what it wants; making it say so again at every launch is a click that 373 + ;; carries no information. It is a timer rather than a call here so the 374 + ;; window is up first — the connect screen with its status is what the 375 + ;; user should be looking at while this happens, and if it fails, the 376 + ;; error lands somewhere visible. 377 + (vidya/after! 150 s/connect!)) 371 378 (ui/run app :title "frq" :width 520 :height 860))
@@ -367,5 +367,12 @@ 367 (defn -main [& _] 367 (defn -main [& _] 368 ;; Before the window: a saved sign-in decides which mode the connect screen 368 ;; Before the window: a saved sign-in decides which mode the connect screen 369 ;; opens in, and what it says. 369 ;; opens in, and what it says. 370 - (s/restore-session!) 370 + (when (s/restore-session!) 371 + ;; And then it connects on its own. A remembered account has already said 372 + ;; what it wants; making it say so again at every launch is a click that 373 + ;; carries no information. It is a timer rather than a call here so the 374 + ;; window is up first — the connect screen with its status is what the 375 + ;; user should be looking at while this happens, and if it fails, the 376 + ;; error lands somewhere visible. 377 + (vidya/after! 150 s/connect!)) 371 (ui/run app :title "frq" :width 520 :height 860)) 378 (ui/run app :title "frq" :width 520 :height 860))