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.
This commit is contained in:
Dionisio
2026-02-13 21:49:01 +01:00
parent c384a08763
commit 177f82ca16
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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',