This project is a simple username/password authentication system using Redux for state management and Next.js for both the front-end and back-end. The system includes API endpoints secured with bearer token authentication and a custom useAuthSession hook to manage the user's session on the client side.
- Authentication System: User login and session management using JWT.
- API Endpoints: Secure API endpoints accessible only to authenticated users.
- State Management: Redux is used for managing the application's state.
- Custom Hook:
useAuthSessionfor managing user sessions. - Validation and Notifications: Form validation and toast notifications for errors and successful login
-
Clone the repository:
git clone https://github.com/MuskanGarg24/authentication-system.git cd authentication-system -
Install the dependencies"
npm install
-
Run the development server:
npm run dev
You can access this on this link [https://authentication-system-iota.vercel.app/]