An open API service indexing awesome lists of open source software.

https://github.com/diegohpezet/authserver-nodejs

Express boilerplata that includes a JWT auth system
https://github.com/diegohpezet/authserver-nodejs

authentication express jsonwebtoken nodejs

Last synced: 3 months ago
JSON representation

Express boilerplata that includes a JWT auth system

Awesome Lists containing this project

README

          

# Authorization TypeScript API

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.

## Features

- User registration and login
- Permission-based access control
- Token-based authentication
- Password hashing and salting

## Installation

1. Clone the repository
2. Install the dependencies
3. Run the server

## Usage

1. Register a new user
2. Login with the registered user
3. Access protected routes with the token

## API Endpoints

- POST api/auth
- POST api/auth/refresh
- GET api/users
- GET api/users/:id
- PUT api/users/:id
- DELETE api/users/:id

## Contributing

If you would like to contribute to this project, please fork the repository and create a pull request with your changes.

## Author

[diegohpezet](https://github.com/diegohpezet)

## License

This project is licensed under the MIT License.