added auth guard

This commit is contained in:
2025-12-06 02:29:57 +01:00
parent e7388bbb25
commit 9832384627
11 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
(function () {
const token = localStorage.getItem("token");
if (!token && window.location.pathname !== "/") {
window.location.href = "/";
}
})();