From 6e653d584c14ca24c506d52f1ec9c36c19fc1992 Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 30 Jul 2025 00:13:44 +0200 Subject: [PATCH] feat: Enhance logout functionality and routing in authentication system - Integrate `useRouter` in `UserProfile.vue` and `useAuth.ts` to manage navigation after logout. - Update `handleLogout` in `Navbar.vue` to reflect that redirection is now handled within the `auth.logout()` function. --- src/components/auth/UserProfile.vue | 2 ++ src/components/layout/Navbar.vue | 1 + src/composables/useAuth.ts | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/src/components/auth/UserProfile.vue b/src/components/auth/UserProfile.vue index 7982f5a..9ecdf9e 100644 --- a/src/components/auth/UserProfile.vue +++ b/src/components/auth/UserProfile.vue @@ -1,5 +1,6 @@