core/frontend
enzo 65c8bf332f fix: access_token (pas token) dans la réponse login/refresh
Le backend retourne { access_token: "...", user: {...} } pas { token: "..." }.
Le store Alpine lisait data.token → undefined → stockait "undefined" en localStorage
→ toutes les requêtes API échouaient avec 401.

Corrigé dans login() et tryRefresh().
Ajout d'un guard synchrone immédiat (pas de token → redirect login sans attendre fetchMe).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 16:50:52 +01:00
..
css fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
js fix: access_token (pas token) dans la réponse login/refresh 2026-03-21 16:50:52 +01:00
locales feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
vendors feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
.gitignore feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
build.mjs feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
dashboard.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
Dockerfile feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
index.html feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
install.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
login.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
modules.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
nginx.conf feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
package-lock.json feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
package.json feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
proxmox.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
settings.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
swup-bundle.entry.mjs feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
terminal.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
updates.html fix: CSS variables neu-*, WebSocket token, thème initial 2026-03-21 16:39:23 +01:00
xterm-bundle.entry.mjs feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00