0.0.9 • Published 5 years ago

@jebaraj.shenll/node-security v0.0.9

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

node-security

This library provides router and authentication middleware to register , authenticate and manage the user for a typical website.

Installation

npm i @jebaraj.shenll/node-security

Usage

// Set public RSA key 
process.env.JWT_PUBLIC_KEY
var security = require('@jebaraj.shenll/node-security');
app.use('/users', security.userRoute);

Endpoints

Login

POST /users/login
Content-Type: application/json

{"username":"username","password":"password"}

List users

GET /users

Register

POST /users
Content-Type: application/json

{"username":"username","password":"password"}
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago