feat: Initial auth components

This commit is contained in:
2026-03-26 14:40:10 -04:00
parent bd108f69a4
commit eb204c003f
11 changed files with 172 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const { isLoggedIn } = useAuth();
const { isRedirecting } = useAuthConnexion();
onBeforeMount(() => (isRedirecting.value = false));
</script>
<template>
<div id="page-connexion" class="container-sm py-12">
<AuthState>
<AuthRedirecting v-if="isRedirecting" />
<template v-else>
<AuthLoginForm v-if="!isLoggedIn" />
<AuthLogoutForm v-else />
</template>
</AuthState>
</div>
</template>