1.0.2 • Published 11 months ago
akwaba-auth-middleware v1.0.2
Akwaba api Auth Middleware
An Express.js middleware for JWT-based authorization.
Installation
npm install akwaba-auth-middleware
How to use it
npm install
or
yarn install
Then import it in your file you want to apply:
with esmodule
import authMiddleware from 'akwaba-auth-middleware'
or with commonjs
const authMiddleware = require('akwaba-auth-middleware')
and finally apply it to the route like a function.