Socket
Socket
Sign inDemoInstall

stage-auth-middleware

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stage-auth-middleware

Auth Service For our Stage sites, so only Akarion Users can access it


Version published
Weekly downloads
75
decreased by-52.53%
Maintainers
1
Install size
62.0 kB
Created
Weekly downloads
 

Readme

Source

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>

FAQs

Last updated on 15 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc