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
|
@@ -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);
|