Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-authen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-authen - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc