Initial commit

This commit is contained in:
Zoe
2026-08-07 22:13:25 -05:00
commit 8006fd67f3
40 changed files with 11017 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
export default defineNuxtRouteMiddleware(async (to) => {
if (to.path.startsWith("/room/")) return;
const auth = useAuth();
await auth.refresh();
if (to.path === "/auth") {
if (auth.authenticated.value) return navigateTo("/");
return;
}
if (!auth.authenticated.value) return navigateTo("/auth");
});