No middleware or guard exists; protected pages render for logged-out users and there is no redirect to /login. Add an auth guard (layout-level or middleware) that checks isAuthenticated from AuthContext and redirects unauthenticated users away from protected routes.
- When you enter the app, you get placed in dashboard even if not authed
- When someone who isn't admin logs in they should go to project page
- Mutable actions answer can't do on the backend should not be visible on the frontend
- Use backend as source of truth
No middleware or guard exists; protected pages render for logged-out users and there is no redirect to
/login. Add an auth guard (layout-level or middleware) that checksisAuthenticatedfromAuthContextand redirects unauthenticated users away from protected routes.