Protect authenticated routes and redirect unauthenticated users to /login with automatic return to the originally requested page.
AC:
-
Protected routes: /dashboard, /portfolio, /alerts, /chart/:listingId
-
Unauthenticated access redirects to /login
-
After login, user is redirected back to original route
-
No redirect loops
Protect authenticated routes and redirect unauthenticated users to
/loginwith automatic return to the originally requested page.AC:
Protected routes: /dashboard, /portfolio, /alerts, /chart/:listingId
Unauthenticated access redirects to /login
After login, user is redirected back to original route
No redirect loops