1.0.1 • Published 4 years ago
stormtech-authmiddleware v1.0.1
auth-middleware
Auth-middleware is a npm package for verify the authentication.
Installation
npm i stormtech-authmiddleware
Usage
import authMiddleware from 'stormtech-authmiddleware'
/*
* config = file that save the encryption jwt key
* logger = instance to log the error
*/
const auth = authMiddleware.initAuthMiddleware({
config,
logger,
});
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.