monacousa-portal/composables
Matt c6a57c7922
Build And Push Image / docker (push) Successful in 2m59s Details
Fix redirect loops and SSR hydration issues in auth flow
- Replace ref with useState in useAuth for SSR compatibility
- Move navigation logic from top-level to onMounted hooks
- Add guest middleware to login page to prevent auth conflicts
- Simplify dashboard auth checks by relying on middleware
- Add loading state to index page during auth resolution

This prevents infinite redirect loops and hydration mismatches that
occurred during server-side rendering when navigating between
authenticated and unauthenticated states.
2025-08-07 17:21:18 +02:00
..
useAuth.ts Fix redirect loops and SSR hydration issues in auth flow 2025-08-07 17:21:18 +02:00