mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
ring: remove push receiver token shim
This commit is contained in:
4
plugins/ring/package-lock.json
generated
4
plugins/ring/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/ring",
|
||||
"version": "0.0.123",
|
||||
"version": "0.0.124",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/ring",
|
||||
"version": "0.0.123",
|
||||
"version": "0.0.124",
|
||||
"dependencies": {
|
||||
"@koush/ring-client-api": "file:../../external/ring-client-api",
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"got": "11.8.6",
|
||||
"socket.io-client": "^2.5.0"
|
||||
},
|
||||
"version": "0.0.123"
|
||||
"version": "0.0.124"
|
||||
}
|
||||
|
||||
@@ -82,10 +82,6 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings
|
||||
],
|
||||
defaultValue: 'Disabled',
|
||||
},
|
||||
pnc: {
|
||||
hide: true,
|
||||
json: true,
|
||||
}
|
||||
});
|
||||
|
||||
constructor() {
|
||||
@@ -141,12 +137,8 @@ class RingPlugin extends ScryptedDeviceBase implements DeviceProvider, Settings
|
||||
},
|
||||
});
|
||||
|
||||
if (this.api.restClient.refreshToken && this.api.restClient.authConfig && this.settingsStorage.values.pnc)
|
||||
this.api.restClient._internalOnly_pushNotificationCredentials = this.settingsStorage.values.pnc;
|
||||
|
||||
this.api.onRefreshTokenUpdated.subscribe(({ newRefreshToken }) => {
|
||||
this.settingsStorage.values.refreshToken = newRefreshToken;
|
||||
this.settingsStorage.values.pnc = this.api.restClient._internalOnly_pushNotificationCredentials;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user