Features of the projects -
- Login authentication with token (https://reqres.in/api/login)
- Token persistence with cookie
- Pinia for global state management
- Token restoration from cookie on page refresh
- Redirect to protected routes after login
- Navigation guards for route protection / guestOnly
If a user is not logged in and tries to access /dashboard, they'll be redirected to /login. If a user is logged in and tries to access /login, they'll be redirected to /dashboard.