refactor: auth stuff

This commit is contained in:
2025-09-18 11:39:29 -04:00
parent c82abe88e4
commit 3cc4b570d5
9 changed files with 93 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
const props = defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
const label = computed(() => props.showLabels ? (loggedIn ? "Déconnexion" : "Connexion") : undefined);
const label = computed(() => props.showLabels ? (loggedIn.value ? "Déconnexion" : "Connexion") : undefined);
</script>
<template>