1.0.1 • Published 6 years ago

ego-token-middleware v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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
1.0.1

6 years ago

1.0.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago