authorize-headers.js
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "authorize-headers.js", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Simple Express middleware to verify if a jsonwebtoken is valid", | ||
@@ -18,3 +18,6 @@ "main": "authorize-headers.js", | ||
"jsonwebtoken": "^7.2.1" | ||
}, | ||
"devDependencies": { | ||
"supertest": "^2.0.1" | ||
} | ||
} |
@@ -18,6 +18,8 @@ var port = process.env.PORT || 3000; | ||
response.status(200).send('Authorized token'); | ||
}) | ||
}); | ||
app.listen(port, function() { | ||
console.log('Listening on port ' + port); | ||
}); | ||
}); | ||
module.exports = app; |
2748
6
63
1