From d6280abad9783f1028131185a24872eccc95e01a Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Sat, 7 Mar 2026 00:15:20 +0000 Subject: [PATCH] fix(dashboard): handle stale sessions and prevent form GET submission This commit updates the frontend API client to intercept authentication errors (like a stale session after a server restart) and immediately clear the local storage and show the login screen. It also adds an onsubmit handler to the login form in index.html to prevent the browser from defaulting to a GET request that puts credentials in the URL if JavaScript fails to initialize or encounters an error. --- static/index.html | 2 +- static/js/api.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index d0692345..ac81c680 100644 --- a/static/index.html +++ b/static/index.html @@ -22,7 +22,7 @@

LLM Proxy Gateway

Admin Dashboard

-
+