feat: connexionButton

This commit is contained in:
2026-01-30 15:39:32 -05:00
parent 28f6e1ae7c
commit 87be06ecea
4 changed files with 15 additions and 5 deletions

View File

@@ -2,5 +2,6 @@ export function useAuth() {
const { loggedIn: isLoggedIn, session } = useUserSession();
const hasRole = (role: string) => session.value?.user?.roles?.includes(role) || false;
const isAdmin = computed(() => hasRole("administrator"));
return { isLoggedIn, hasRole, isAdmin };
}