innogy-smarthome-lib
Advanced tools
Comparing version 0.5.2 to 0.5.3
// Set the configuration settings | ||
var createConfig = function (config) { | ||
const apiHost = 'api.services-smarthome.de'; | ||
const authHost = 'auth.services-smarthome.de'; | ||
const apiUri = 'https://' + apiHost; | ||
const authUri = 'https://' + authHost; | ||
@@ -19,3 +21,4 @@ const baseConfig = { | ||
auth: { | ||
tokenHost: apiUri, | ||
host: authHost, | ||
tokenHost: authUri, | ||
authorizePath: '/AUTH/authorize', | ||
@@ -22,0 +25,0 @@ tokenPath: '/AUTH/token' |
@@ -25,3 +25,3 @@ const jsonfile = require('jsonfile'); | ||
var postOptions = { | ||
host: 'auth.services-smarthome.de', | ||
host: oAuthConfig.auth.host, | ||
path: oAuthConfig.auth.tokenPath, | ||
@@ -88,3 +88,3 @@ method: 'POST', | ||
var postOptions = { | ||
host: 'auth.services-smarthome.de', | ||
host: oAuthConfig.auth.host, | ||
path: oAuthConfig.auth.tokenPath, | ||
@@ -91,0 +91,0 @@ method: 'POST', |
{ | ||
"name": "innogy-smarthome-lib", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "JavaScript library for the Innogy SmartHome system", | ||
@@ -5,0 +5,0 @@ "main": "./lib/smarthome", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66451
1460