polish #14

Open
mikhailov.aa wants to merge 66 commits from polish into master
Showing only changes of commit ac4af66cd5 - Show all commits

View file

@ -32,11 +32,16 @@
user = await whoami(); user = await whoami();
} else { } else {
user = null; user = null;
if ($page.url.pathname !== '/')
goto('/login'); // Redirect to login if not authenticated
} }
} catch (error) { } catch (error) {
console.error('Authentication check failed:', error); console.error('Authentication check failed:', error);
isAuthenticated = false; isAuthenticated = false;
user = null; user = null;
if ($page.url.pathname !== '/')
goto('/login'); // Redirect to login if not authenticated
} }
}); });