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

https://github.com/cuongndc9/node-auth-jwt

⚔️ Authentication with JSON Web Token (JWT).
https://github.com/cuongndc9/node-auth-jwt

103cuong expressjs json-web-token jwt jwt-authentication nodejs

Last synced: 6 months ago
JSON representation

⚔️ Authentication with JSON Web Token (JWT).

Awesome Lists containing this project

README

          

# node-auth-jwt

> ⚔️ Authentication with JSON Web Token (JWT).

## Install

Install dependencies
```
$ npm i
```
Create `.env` file
```
MONGODB_URI=
```

## Usage

One line to run
```
$ npm start
```

## API

| Route | HTTP method | Description |
|------------------|-------------|-----------------------------|
| /api/users | `GET` | Get all users. |
| /api/authenticate| `POST` | Authenticate account. |

## License

![](https://img.shields.io/github/license/cuongw/node-auth-jwt.svg?style=flat-square)