1.0.2 • Published 1 year ago
akwaba-auth-middleware v1.0.2
Akwaba api Auth Middleware
An Express.js middleware for JWT-based authorization.
Installation
npm install akwaba-auth-middlewareHow to use it
npm installor
yarn installThen 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.