homey-api 3.0.25 → 3.0.26
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/lib/AthomCloudAPI.js +2 -2
- package/package.json +1 -1
package/lib/AthomCloudAPI.js
CHANGED
|
@@ -489,8 +489,8 @@ for(const {@link HomeyAPIV2.ManagerDevices.Device device} of Object.values(devic
|
|
|
489
489
|
|
|
490
490
|
const body = new URLSearchParams();
|
|
491
491
|
body.append('grant_type', 'password');
|
|
492
|
-
body.append('username', username);
|
|
493
|
-
body.append('password', password);
|
|
492
|
+
body.append('username', encodeURIComponent(username));
|
|
493
|
+
body.append('password', encodeURIComponent(password));
|
|
494
494
|
|
|
495
495
|
const response = await Util.fetch(`${this.baseUrl}/oauth2/token`, {
|
|
496
496
|
body: body.toString(),
|