@como/como-client
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "@como/como-client", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -136,7 +136,11 @@ const moment = require('moment-timezone'); | ||
console.error(`signOn with, installationId:${installationId}, locationId:${locationId}, source:${source},accessToken:${accessToken}`); | ||
await this.comoData.initApi.signOn(installationId, locationId, source, accessToken); | ||
const data = await this.comoData.initApi.signOn(installationId, locationId, source, accessToken); | ||
console.error(`signOn with result " ${JSON.stringify(data)}`); | ||
if(data && data.accessToken){ | ||
console.error(`signOn entered update credentials`); | ||
updateCredentials(data, true); | ||
} | ||
}catch(e){ | ||
console.log(`Failed signOn with accessToken, installationId:${installationId}, locationId:${locationId}, source:${source},accessToken:${accessToken}, error:${e}`); | ||
} | ||
} | ||
@@ -143,0 +147,0 @@ if(!this.comoData.token){ |
Sorry, the diff of this file is too big to display
218629
4697