feat: isRedirecting auth
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m1s

This commit is contained in:
2025-09-18 14:39:47 -04:00
parent 056901e7e7
commit a863da3e40
6 changed files with 41 additions and 29 deletions

View File

@@ -2,12 +2,17 @@
definePageMeta({ layout: "auth" });
const { isLoggedIn } = useAuth();
const { isRedirecting } = useAuthActions();
useSeoMeta({ title: isLoggedIn.value ? "Déconnexion" : "Connexion" });
</script>
<template>
<AuthState>
<LogoutForm v-if="isLoggedIn" />
<LoginForm v-else />
<AuthRedirecting v-if="isRedirecting" />
<template v-else>
<AuthLogoutForm v-if="isLoggedIn" />
<AuthLoginForm v-else />
</template>
</AuthState>
</template>