generated from pascalmartineau/wp-skeleton
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m1s
19 lines
433 B
Vue
19 lines
433 B
Vue
<script setup lang="ts">
|
|
definePageMeta({ layout: "auth" });
|
|
|
|
const { isLoggedIn } = useAuth();
|
|
const { isRedirecting } = useAuthActions();
|
|
|
|
useSeoMeta({ title: isLoggedIn.value ? "Déconnexion" : "Connexion" });
|
|
</script>
|
|
|
|
<template>
|
|
<AuthState>
|
|
<AuthRedirecting v-if="isRedirecting" />
|
|
<template v-else>
|
|
<AuthLogoutForm v-if="isLoggedIn" />
|
|
<AuthLoginForm v-else />
|
|
</template>
|
|
</AuthState>
|
|
</template>
|