fix: ensure session cookie is properly read by forcing page reload on login success
Build And Push Image / docker (push) Successful in 2m53s Details

This commit is contained in:
Matt 2025-08-07 12:35:14 +02:00
parent cd29123e23
commit c2c9f2fb8e
1 changed files with 3 additions and 2 deletions

View File

@ -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);