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.
- Host: GitHub
- URL: https://github.com/andersontr15/authorize-headers
- Owner: andersontr15
- Created: 2016-12-16T00:39:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T01:22:54.000Z (about 9 years ago)
- Last Synced: 2025-01-11T03:20:42.754Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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