express-authen
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "express-authen", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Auto redirect to login page middleware for Expressjs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,2 +8,12 @@ # express-authen | ||
``` | ||
$ npm install express-authen | ||
``` | ||
If you want to save this module into `package.json`, simply use: | ||
``` | ||
$ npm install --save express-authen | ||
``` | ||
# API | ||
@@ -14,4 +24,4 @@ | ||
```javascript | ||
var auth = require('express-auth') | ||
app.use(auth({ | ||
var authen = require('express-authen') | ||
app.use(authen({ | ||
'login': '/', | ||
@@ -25,4 +35,4 @@ 'home': '/home', | ||
## auth(options) | ||
`options` is an object for config middleware. `options` include: | ||
## authen(options) | ||
`options` is an object for config middleware. `options` includes: | ||
@@ -36,2 +46,2 @@ 1. login: login page path | ||
# License | ||
[MIT](https://github.com/dominhhai/express-auth/blob/master/LICENSE) | ||
[MIT](https://github.com/dominhhai/express-authen/blob/master/LICENSE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4768
44