Skip to content

Instantly share code, notes, and snippets.

@ryanore
ryanore / gist:914362881d2d9f0878f2
Last active August 29, 2015 14:11
MISSING_HEADER error on jwt.verify()
var config = require('../../app-config');
var User = require('../models/user-model');
var jwt = require('jsonwebtoken');
var sendStatus = function(res, stat) {
var status = stat;
var http = require('http');
res.status(status).end(http.STATUS_CODES[status]);
}