In this part of the project, I developed a custom Login and Register system for three different user roles:
Customers, Sellers, and Admins.
Each role has a dedicated registration and login page.
localStorage is used to manage sessions and track logged-in users.
After logging in, users are redirected to their specific dashboard based on their role.
Access to pages is protected by role-checking to ensure users only access what they’re authorized to.
This system provides a flexible, lightweight authentication experience without using a backend or database.