An open API service indexing awesome lists of open source software.

https://github.com/andersontr15/authorize-headers

Simple express middleware to verify if a jsonwebtoken is valid.
https://github.com/andersontr15/authorize-headers

Last synced: 11 months ago
JSON representation

Simple express middleware to verify if a jsonwebtoken is valid.

Awesome Lists containing this project

README

          

authorize-headers.js
===========

Simple express middleware to verify if a jsonwebtoken is valid.

To use in Node:

```js
var express = require('express');
var authorizeHeaders = require('authorize-headers');
var app = express();
app.get('/', authorizeHeaders, function(request, response) {
// Continue with request if successful
// Otherwise middleware will return a 400
});

```

Built by Theodore Anderson