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

stage-auth-middleware

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 15 Apr 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc