Adds auth guards

This commit is contained in:
2025-05-27 18:07:12 -07:00
parent c42eb650b5
commit b96fe1371e
8 changed files with 135 additions and 82 deletions

View File

@@ -7,3 +7,7 @@ import PocketBase from "pocketbase";
import { POCKETBASE_URL } from "@/config";
export const pb = new PocketBase(POCKETBASE_URL);
export function isAuthenticated(): boolean {
return pb.authStore.isValid;
}