- Replaced router.push with window.location.href to ensure a full page reload after login, allowing the session cookie to be read correctly before authentication checks. - Updated comments to clarify the reason for this change in the login flow.
- Replaced router.push with window.location.href to ensure a full page reload after login, allowing the session cookie to be read correctly before authentication checks. - Updated comments to clarify the reason for this change in the login flow.