litespeed-jwt
A fast and easy JWT authentication and creation plugin for Litespeed
Installation
$ npm install litespeed-jwt
Usage
// Initiate a new jwt instance with a configconst auth = // To authenticate a route:const myRoute = method: 'GET' url: '/endpoint' preHandlers: authcheck { ... }) // To create a new jwt:const newJWT = auth
Contribution
All PR's and contributions are welcome!