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.
@@ -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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.0.25",
3
+ "version": "3.0.26",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [