From c2c9f2fb8e6c178cd7282e55abccbb1d23c4f784 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 7 Aug 2025 12:35:14 +0200 Subject: [PATCH] fix: ensure session cookie is properly read by forcing page reload on login success --- pages/login.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/login.vue b/pages/login.vue index da05d53..9f71923 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -192,8 +192,9 @@ const handleLogin = async () => { }); if (response.success) { - // Success! Redirect will be handled by the API response - await navigateTo(response.redirectTo || '/dashboard'); + // Force a page reload to ensure the session cookie is properly read + // This is more reliable than trying to update the auth state manually + window.location.href = response.redirectTo || '/dashboard'; } } catch (error: any) { console.error('Login error:', error);