This repository implements a simple role-based authentication system, allowing for different levels of access and permissions for users.
- User registration and login
- Role-based access control
- Secure password hashing
- JWT authentication
- Node.js
- Express
- MongoDB
- JWT
- Bcrypt
- Clone the repository
- Install dependencies:
npm install - Set up environment variables
- Start the server:
npm start
- Register a new user
- Assign roles (admin, user, etc.)
- Access protected routes based on roles