dudi/public
Simon Kühn 99304a6174 Fix session-expiry redirect not showing login form
When Symfony returns a non-JSON body (empty or HTML) for a 401 on
protected API routes, res.json() throws a SyntaxError with no .status,
so showLogin() was never called. Now the HTTP status is preserved
through JSON parse failures so the 401 check works correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 20:03:21 +02:00
..
.htaccess Initial commit: Dudi habit tracker 2026-04-29 15:40:57 +02:00
app.js Fix session-expiry redirect not showing login form 2026-05-07 20:03:21 +02:00
index.php Initial commit: Dudi habit tracker 2026-04-29 15:40:57 +02:00
logo.png Initial commit: Dudi habit tracker 2026-04-29 15:40:57 +02:00
style.css Add API loading indicator and session-expiry auto-redirect 2026-05-07 12:48:01 +02:00