refactor: useAuth / useAuthActions
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m4s

This commit is contained in:
2025-09-18 14:02:00 -04:00
parent 5f23d4094e
commit 6b078267de
7 changed files with 23 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
export default defineNuxtRouteMiddleware((to) => {
const { loggedIn } = useUserSession();
if (!loggedIn.value) {
const { isLoggedIn } = useAuth();
if (!isLoggedIn.value) {
return navigateTo(`/connexion?redirect=${encodeURIComponent(to.fullPath)}`);
}
});