generated from pascalmartineau/wp-skeleton
feat: isRedirecting auth
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m1s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m1s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user