This commit is contained in:
Josh Harvey 2016-11-05 19:18:33 +00:00
parent bcca339ea6
commit ddd277afd6
5 changed files with 45 additions and 8 deletions

View file

@ -53,6 +53,7 @@ module.exports = function (options) {
authMiddleware = function (req, res, next) {
const deviceId = req.connection.getPeerCertificate().fingerprint
console.log(deviceId)
return pair.isPaired(deviceId)
.then(r => {