fix: resolve auth:expired race condition and force SW cache refresh

- Add _pendingLoginRedirect flag in router.js to handle auth:expired
  events that fire during active navigation (isNavigating=true).
  Previously the navigate('/login') call was silently dropped, leaving
  the user stuck on the dashboard with an error toast.
- Bump SHELL_CACHE v33→v34 and PAGES_CACHE v28→v29 to force cache
  invalidation on iOS devices still running the pre-CSRF-fix code.
- Add err.status to dashboard error log for easier diagnostics.
This commit is contained in:
Ulas
2026-04-16 08:15:04 +02:00
parent dfd809c284
commit fc6e4fb9f2
3 changed files with 20 additions and 4 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
* API: Immer Netzwerk (kein Caching von Nutzerdaten)
*/
const SHELL_CACHE = 'oikos-shell-v33';
const PAGES_CACHE = 'oikos-pages-v28';
const SHELL_CACHE = 'oikos-shell-v34';
const PAGES_CACHE = 'oikos-pages-v29';
const ASSETS_CACHE = 'oikos-assets-v27';
const ALL_CACHES = [SHELL_CACHE, PAGES_CACHE, ASSETS_CACHE];