@revolttv/authenticated-middleware

0.1.2 • Public • Published

authenticated-middleware

Checks an incoming request for a valid JSON Web Token.

Attaches the token to the req object as req.user.

Usage

import authenticated from '@revolttv/authenticated-middleware';

let app = new express();

app.use(authenticated({
    secret: 'your-JWT-signing-secret'
}));

Readme

Keywords

none

Package Sidebar

Install

npm i @revolttv/authenticated-middleware

Weekly Downloads

0

Version

0.1.2

License

UNLICENSED

Last publish

Collaborators

  • hspinks
  • andrewburgess
  • revolt