Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(frontend): extract and use token from URL query parameter
rcourtman657d59ad64e7
diff --git a/frontend-modern/src/utils/apiClient.ts b/frontend-modern/src/utils/apiClient.tsindex 4c0848bee2..62bbf862dc 100644--- a/frontend-modern/src/utils/apiClient.ts+++ b/frontend-modern/src/utils/apiClient.ts@@ -78,6 +78,23 @@ class ApiClient {private loadStoredAuth() {try {+ // First, check for token in URL query parameter (for kiosk/dashboard mode)+ // This allows visiting ?token=xxx to auto-authenticate without cookies+ if (typeof window !== 'undefined' && window.location?.search) {+ const params = new URLSearchParams(window.location.search);+ const urlToken = params.get('token');+ if (urlToken) {+ this.apiToken = urlToken;+ this.persistToken(urlToken);+ // Clean the token from URL for security (don't expose in browser history)+ params.delete('token');+ const newQuery = params.toString();+ const newUrl = `${window.location.pathname}${newQuery ? `?${newQuery}` : ''}`;+ window.history.replaceState({}, document.title, newUrl);+ return;+ }+ }+const storage = getSessionStorage();if (!storage) return;