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:
+1
-1
@@ -1518,7 +1518,7 @@ function showUserProfileModal() {
|
|||||||
/**
|
/**
|
||||||
* Check if user is authenticated and load user's home folder
|
* Check if user is authenticated and load user's home folder
|
||||||
*/
|
*/
|
||||||
function checkAuthentication() {
|
async function checkAuthentication() {
|
||||||
// COMPLETE BREAK FOR AUTHENTICATION LOOPS:
|
// COMPLETE BREAK FOR AUTHENTICATION LOOPS:
|
||||||
// Always allow app to load with minimal authentication
|
// Always allow app to load with minimal authentication
|
||||||
// This is an emergency fix to stop the redirect loops
|
// This is an emergency fix to stop the redirect loops
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
// OxiCloud Service Worker
|
// OxiCloud Service Worker
|
||||||
const CACHE_NAME = 'oxicloud-cache-v1';
|
const CACHE_NAME = 'oxicloud-cache-v2';
|
||||||
const ASSETS_TO_CACHE = [
|
const ASSETS_TO_CACHE = [
|
||||||
'/',
|
'/',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user