From d44546ef29a6859326fa5650b6ec3477c69a7707 Mon Sep 17 00:00:00 2001 From: Brandyn / Techy Date: Sat, 31 Oct 2026 15:35:31 -0500 Subject: [PATCH] dock: sign out in the background and return to the dock instead of landing on copyparty Co-Authored-By: Claude Fable 5.1 --- dock/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dock/index.html b/dock/index.html index 5e67471..5eeeb55 100644 --- a/dock/index.html +++ b/dock/index.html @@ -35,7 +35,7 @@

Vanguard Stream - sign out

+ sign out @@ -207,6 +207,13 @@ $("dump").onclick = async () => { } catch (e) { status("dump failed: " + e.message, "bad"); } }; +$("signout").onclick = async e => { + e.preventDefault(); status("signing out…"); + // Authentik's sign-out redirects to the site root (copyparty); do it in the background, then reload the dock, + // which sends us through the Discord login and back here. + try { await fetch("/outpost.goauthentik.io/sign_out", {credentials:"same-origin", mode:"no-cors", redirect:"follow"}); } catch(e){} + setTimeout(() => location.replace("/dock/"), 500); +}; whoami(); renderPreview();