Express的身份认证中间件:grant
jopen
10年前
Express的身份认证中间件grant,构建在 mashape / guardian之上。
Providers Playground
用法
var express = require('express'); var Grant = require('grant'); var grant = new Grant({...configuration see below...}); var app = express(); // mount grant app.use(grant); // app server middlewares app.use(cookieParser()); app.use(session());