This is a TypeScript API for authorization. It provides a simple way to manage user roles and permissions. The API is built using Express.js and Sequelize.
- User registration and login
- Permission-based access control
- Token-based authentication
- Password hashing and salting
- Clone the repository
- Install the dependencies
- Run the server
- Register a new user
- Login with the registered user
- Access protected routes with the token
- POST api/auth
- POST api/auth/refresh
- GET api/users
- GET api/users/:id
- PUT api/users/:id
- DELETE api/users/:id
If you would like to contribute to this project, please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.