From 177f82ca1614bbba12bdb18415d21ca6ef0f5f8b Mon Sep 17 00:00:00 2001 From: Dionisio Date: Fri, 13 Feb 2026 21:49:01 +0100 Subject: [PATCH] fix: make checkAuthentication async to fix app.js parse error (#90) checkAuthentication() used await for the OIDC exchange fetch but was declared as a regular function, not async. This caused a JavaScript syntax error that prevented the entire app.js file from parsing, resulting in a completely non-interactive frontend after OIDC login. Also bumped service worker cache version to v2 so browsers discard stale cached JS files on the next load. --- static/js/app.js | 2 +- static/sw.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 137e073c..7b622ce0 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1518,7 +1518,7 @@ function showUserProfileModal() { /** * Check if user is authenticated and load user's home folder */ -function checkAuthentication() { +async function checkAuthentication() { // COMPLETE BREAK FOR AUTHENTICATION LOOPS: // Always allow app to load with minimal authentication // This is an emergency fix to stop the redirect loops diff --git a/static/sw.js b/static/sw.js index 8eca6eec..21dfd5f5 100644 --- a/static/sw.js +++ b/static/sw.js @@ -1,5 +1,5 @@ // OxiCloud Service Worker -const CACHE_NAME = 'oxicloud-cache-v1'; +const CACHE_NAME = 'oxicloud-cache-v2'; const ASSETS_TO_CACHE = [ '/', '/index.html',