innogy-smarthome-lib
Advanced tools
Comparing version 0.2.18 to 0.2.20
@@ -37,4 +37,2 @@ const jsonfile = require('jsonfile'); | ||
console.log("AUTHORIZE CALL !!!"); | ||
oauth2.authorizationCode.getToken(options, function (error, result) { | ||
@@ -52,7 +50,7 @@ if (error) { | ||
jsonfile.writeFile(currentAuthFile, token.token); | ||
jsonfile.writeFile(currentAuthFile, token.token, function () { | ||
if (tokenCallback) | ||
tokenCallback(null, token.token); | ||
}); | ||
if (tokenCallback) | ||
tokenCallback(null, token.token); | ||
setTimeout(function () { | ||
@@ -59,0 +57,0 @@ server.close(); |
@@ -310,2 +310,3 @@ const inherits = require('util').inherits; | ||
that._requestor.call("initialize").catch(function (e) { | ||
if (e && e.error && e.error.errorcode === 2006) { | ||
@@ -312,0 +313,0 @@ // Does not work atm as "uninitialize" is broken with the last patch ... |
{ | ||
"name": "innogy-smarthome-lib", | ||
"version": "0.2.18", | ||
"version": "0.2.20", | ||
"description": "JavaScript library for the Innogy SmartHome system", | ||
@@ -5,0 +5,0 @@ "main": "./lib/smarthome", |
64923