19 lines
469 B
Vue
19 lines
469 B
Vue
<script setup lang="ts">
|
|
const { isLoggedIn } = useAuth();
|
|
const { isRedirecting } = useAuthConnexion();
|
|
</script>
|
|
|
|
<template>
|
|
<section data-section-name="auth-connexion" class="py-12">
|
|
<div class="container-sm">
|
|
<AuthState>
|
|
<AuthRedirecting v-if="isRedirecting" />
|
|
<template v-else>
|
|
<AuthLogoutForm v-if="isLoggedIn" />
|
|
<AuthLoginForm v-else />
|
|
</template>
|
|
</AuthState>
|
|
</div>
|
|
</section>
|
|
</template>
|