Comparing version 0.10.7 to 0.10.8
@@ -16,3 +16,4 @@ | ||
} | ||
if (data.signatureVerified && data.nonceVerified && data.status == "OK") { | ||
console.log(data); | ||
if (data.valid) { | ||
console.log(data); | ||
@@ -19,0 +20,0 @@ process.exit(0); |
@@ -126,2 +126,5 @@ var crypto = require('crypto'); | ||
body.serial = modhex.decodeInt(body.identity); | ||
body.valid = (body.signatureVerified && body.nonceVerified) | ||
} else { | ||
body.valid = false; | ||
} | ||
@@ -128,0 +131,0 @@ |
{ | ||
"name": "yub", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"description": "Yubico Yubikey API Client for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
52881
217