TypeError: Cannot read property 'identity' of undefined
at Client. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/lib/login/hub.js:63:15)
at emitOne (events.js:78:13)
at Client.emit (events.js:170:7)
at Client.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/index.js:231:14)
at emitOne (events.js:78:13)
at Connection.emit (events.js:170:7)
at Connection.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:370:14)
at StreamParser. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:226:14)
at emitOne (events.js:78:13)
at StreamParser.emit (events.js:170:7)
node app /Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/lib/login/hub.js:63 if(response.identity && response.identity !== undefined) { ^
TypeError: Cannot read property 'identity' of undefined at Client. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/lib/login/hub.js:63:15)
at emitOne (events.js:78:13)
at Client.emit (events.js:170:7)
at Client.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/index.js:231:14)
at emitOne (events.js:78:13)
at Connection.emit (events.js:170:7)
at Connection.onStanza (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:370:14)
at StreamParser. (/Users/d/Dropbox/Dev/HomeAutomation/HarmonyTest/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/lib/Connection.js:226:14)
at emitOne (events.js:78:13)
at StreamParser.emit (events.js:170:7)