1.0.9 • Published 5 years ago

stage-auth-middleware v1.0.9

Weekly downloads
220
License
ISC
Repository
github
Last release
5 years ago

Stage Auth Middleware

To be used on staging sites of akarion. This will force users to authenticate in order to access a stage URL and display a hint that they are on the stage site.

Install

npm install stage-auth-middleware --save

Now you can use it in your server with

const express = require('express');
const stageAuthMiddleware = require('stage-auth-middleware');

const app = express();

app.use(stageAuthMiddleware({
  pass: 'super-secure-password',
  enabled: process.env.NODE_ENV !== 'production',
}));

Now add the script to your index.html file(s)

<script src="/stage-auth-middleware.js" async defer></script>

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago