homebridge-xbox-tv 3.0.1 → 3.0.2-beta.0

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": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.0.1",
4
+ "version": "3.0.2-beta.0",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -219,7 +219,7 @@ class Authentication extends EventEmitter{
219
219
  async readTokens() {
220
220
  try {
221
221
  const data = await fsPromises.readFile(this.tokensFile);
222
- const tokens = data.length > 0 ? JSON.parse(data) : false;
222
+ const tokens = data.oauth.length > 0 ? JSON.parse(data) : false;
223
223
  return tokens;
224
224
  } catch (error) {
225
225
  this.emit('error', error);