homebridge-melcloud-control 4.0.0-beta.347 → 4.0.0-beta.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.347",
4
+ "version": "4.0.0-beta.348",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/melcloud.js CHANGED
@@ -298,7 +298,7 @@ class MelCloud extends EventEmitter {
298
298
  const url = data.url;
299
299
  const codeVerifier = data.codeVerifier;
300
300
  const code = await melCloudHomeToken.loginToMelCloudHome(url);
301
- const token = await melCloudHomeToken.getTokens(code, codeVerifier);
301
+ //const token = await melCloudHomeToken.getTokens(code, codeVerifier);
302
302
 
303
303
  const accountInfo = { ContextKey: token, UseFahrenheit: false };
304
304
  this.contextKey = cookies;
@@ -11,7 +11,7 @@ const CLIENT_ID = 'homemobile';
11
11
  const REDIRECT_URI = 'melcloudhome://';
12
12
  const SCOPE = 'openid profile email offline_access IdentityServerApi';
13
13
  const TOKEN_ENDPOINT = 'https://auth.melcloudhome.com/connect/token';
14
- const AUTHORIZE_ENDPOINT = 'https://auth.melcloudhome.com/connect/authorize';
14
+ const AUTHORIZE_ENDPOINT = 'https://auth.melcloudhome.com';
15
15
 
16
16
  class MelCloudHomeToken extends EventEmitter {
17
17
  constructor(config) {