1.0.9 • Published 4 years ago

stage-auth-middleware v1.0.9

Weekly downloads
220
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago