swapez-auth
v1.0.7
Published
Vnng Authentication Module
Downloads
4
Readme
VNNG Auth
Authentication/Authorization for Swap-Ez's services
Installation
npm install swapez-auth --save
or
yarn add swapez-auth
Usage
const {initAuth, ROLE} = require('swapez-express');
const express = require('expressjs');
const app = express();
const repo = {
findUserByEmail: function(){}
}
const auth = initAuth(app, { repo });