Commit 7b51d9fd by zCaesar

add log

parent 057aeca9
......@@ -26,6 +26,9 @@ function authCheck(client_id, token, password, callback) {
if (require('jwt-verify').verify(token)) callback(true) // auth client device by token
else {
seneca.act('ms:tokenregistry, cmd:getAttributes, type:device, tokencode:'+token, function(err,res) {
console.log('--------------------res---------------------')
console.log(res.result[0])
console.log('--------------------res---------------------')
if (!err && res) {
var token_profile = (res&&res.result&&res.result[0])?res.result[0]:{};
var mqttauth = {
......
......@@ -12,7 +12,7 @@
"dependencies": {
"config": "^1.30.0",
"jsonwebtoken": "^8.3.0",
"jwt-verify": "git+https://nexpienpm:CCqLQjg4ytvzN7QbssUV@dev.nexpie.com/npm/jwt-verify.git#issuer",
"jwt-verify": "git+https://nexpienpm:CCqLQjg4ytvzN7QbssUV@dev.nexpie.com/npm/jwt-verify.git",
"lru-cache": "^4.1.3",
"restify": "^7.1.1",
"seneca": "^3.6.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment