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

ego-token-middleware

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ego-token-middleware

Express middleware for validating ego JWT

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

ego-token-middleware

Express middleware for validating ego JWT

Usage

import egoToken from 'ego-token-middleware';
const app = express();
app.use(egoToken({ required: true }));

The Ego JWT must be included in in the request as authorization in either the body or the header, with the format "Bearer __TOKEN__" where __TOKEN__ is the token.

This middleware needs the request to be ran through body-parser by the consuming app.

Options

  • required - if true, send 401 error on invalid token. default: false
  • egoURL - url of ego to fetch public key from. default: the value of process.env.EGO_API

FAQs

Package last updated on 15 Jun 2018

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