@scrypted/server 0.92.0 → 0.94.1
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/dist/plugin/plugin-device.d.ts +2 -2
- package/dist/plugin/plugin-http.d.ts +1 -0
- package/dist/plugin/plugin-remote.d.ts +5 -5
- package/dist/plugin/plugin-remote.js +3 -0
- package/dist/plugin/plugin-remote.js.map +1 -1
- package/dist/runtime.d.ts +1 -0
- package/dist/scrypted-server-main.js +22 -22
- package/dist/scrypted-server-main.js.map +1 -1
- package/package.json +9 -9
- package/src/plugin/plugin-device.ts +1 -1
- package/src/plugin/plugin-remote.ts +7 -4
- package/src/plugin/system.ts +1 -1
- package/src/scrypted-server-main.ts +25 -24
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EventListener, EventListenerOptions, EventListenerRegister,
|
1
|
+
import { EventListener, EventListenerOptions, EventListenerRegister, ScryptedDeviceType } from "@scrypted/types";
|
2
2
|
import { PluginDevice } from "../db-types";
|
3
3
|
import { PrimitiveProxyHandler } from "../rpc";
|
4
4
|
import { ScryptedRuntime } from "../runtime";
|
@@ -16,7 +16,7 @@ interface MixinTableEntry {
|
|
16
16
|
}
|
17
17
|
export declare const RefreshSymbol: unique symbol;
|
18
18
|
export declare const QueryInterfaceSymbol: unique symbol;
|
19
|
-
export declare class PluginDeviceProxyHandler implements PrimitiveProxyHandler<any
|
19
|
+
export declare class PluginDeviceProxyHandler implements PrimitiveProxyHandler<any> {
|
20
20
|
scrypted: ScryptedRuntime;
|
21
21
|
id: string;
|
22
22
|
mixinTable: MixinTable[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { Device, DeviceManager, DeviceManifest, DeviceState, Logger, MediaManager, ScryptedNativeId, ScryptedStatic, SystemDeviceState, SystemManager } from '@scrypted/types';
|
2
|
+
import { Device, DeviceManager, DeviceManifest, DeviceState, Logger, MediaManager, ScryptedNativeId, ScryptedStatic, SystemDeviceState, SystemManager, WritableDeviceState } from '@scrypted/types';
|
3
3
|
import { RpcPeer } from '../rpc';
|
4
4
|
import { PluginAPI, PluginHostInfo, PluginRemote, PluginRemoteLoadZipOptions } from './plugin-api';
|
5
5
|
import { WebSocketMethods } from './plugin-remote-websocket';
|
@@ -12,17 +12,17 @@ interface DeviceManagerDevice {
|
|
12
12
|
}
|
13
13
|
export declare class DeviceManagerImpl implements DeviceManager {
|
14
14
|
systemManager: SystemManagerImpl;
|
15
|
-
getDeviceConsole
|
16
|
-
getMixinConsole
|
15
|
+
getDeviceConsole: (nativeId?: ScryptedNativeId) => Console;
|
16
|
+
getMixinConsole: (mixinId: string, nativeId?: ScryptedNativeId) => Console;
|
17
17
|
api: PluginAPI;
|
18
18
|
nativeIds: Map<string, DeviceManagerDevice>;
|
19
19
|
deviceStorage: Map<string, StorageImpl>;
|
20
20
|
mixinStorage: Map<string, Map<string, StorageImpl>>;
|
21
|
-
constructor(systemManager: SystemManagerImpl, getDeviceConsole
|
21
|
+
constructor(systemManager: SystemManagerImpl, getDeviceConsole: (nativeId?: ScryptedNativeId) => Console, getMixinConsole: (mixinId: string, nativeId?: ScryptedNativeId) => Console);
|
22
22
|
requestRestart(): Promise<void>;
|
23
23
|
getDeviceLogger(nativeId?: ScryptedNativeId): Logger;
|
24
24
|
getDeviceState(nativeId?: any): DeviceState;
|
25
|
-
createDeviceState(id: string, setState: (property: string, value: any) => Promise<void>):
|
25
|
+
createDeviceState(id: string, setState: (property: string, value: any) => Promise<void>): WritableDeviceState;
|
26
26
|
getDeviceStorage(nativeId?: any): StorageImpl;
|
27
27
|
getMixinStorage(id: string, nativeId?: ScryptedNativeId): StorageImpl;
|
28
28
|
pruneMixinStorage(): void;
|
@@ -460,6 +460,9 @@ function attachPluginRemote(peer, options) {
|
|
460
460
|
pluginHostAPI: api,
|
461
461
|
pluginRemoteAPI: undefined,
|
462
462
|
serverVersion: hostInfo?.serverVersion,
|
463
|
+
connect: undefined,
|
464
|
+
fork: undefined,
|
465
|
+
connectRPCObject: undefined,
|
463
466
|
};
|
464
467
|
delete peer.params.getRemote;
|
465
468
|
endpointManager.api = api;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin-remote.js","sourceRoot":"","sources":["../../src/plugin/plugin-remote.ts"],"names":[],"mappings":";;;AAAA,2CAAiT;AACjT,gCAAiD;AAEjD,oEAA4D;AAE5D,uEAAwJ;AACxJ,6DAAqD;AACrD,qCAA6C;AAE7C,MAAM,YAAY;IAKiD;IAJ/D,QAAQ,CAAmB;IAC3B,GAAG,CAAY;IACf,MAAM,CAAwB;IAE9B,YAAY,GAAc,EAAE,QAA0B,EAAS,OAAY;QAAZ,YAAO,GAAP,OAAO,CAAK;QACvE,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,YAAY;QACd,IAAI,CAAC,IAAI,CAAC,MAAM;YACZ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,OAAe;QACpC,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,CAAC,CAAC,GAAW;QACT,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACvB,CAAC;IACD,KAAK,CAAC,KAAK;QACP,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IACxC,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,GAAW;QACxB,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAChD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
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
|
+
/// <reference types="cookie-parser" />
|
3
4
|
import { Device, HttpRequest, ScryptedDevice, ScryptedNativeId } from '@scrypted/types';
|
4
5
|
import express, { Request, Response } from 'express';
|
5
6
|
import { ParamsDictionary } from 'express-serve-static-core';
|
@@ -216,13 +216,6 @@ async function start(mainFilename, options) {
|
|
216
216
|
}
|
217
217
|
};
|
218
218
|
app.use(async (req, res, next) => {
|
219
|
-
const defaultAuthentication = getDefaultAuthentication(req);
|
220
|
-
if (defaultAuthentication) {
|
221
|
-
res.locals.username = defaultAuthentication._id;
|
222
|
-
res.locals.aclId = defaultAuthentication.aclId;
|
223
|
-
next();
|
224
|
-
return;
|
225
|
-
}
|
226
219
|
// the remote address may be ipv6 prefixed so use a fuzzy match.
|
227
220
|
// eg ::ffff:192.168.2.124
|
228
221
|
if (process_1.default.env.SCRYPTED_ADMIN_USERNAME
|
@@ -293,6 +286,13 @@ async function start(mainFilename, options) {
|
|
293
286
|
else if (req.query['scryptedToken']) {
|
294
287
|
checkToken(req.query.scryptedToken.toString());
|
295
288
|
}
|
289
|
+
if (!res.locals.username) {
|
290
|
+
const defaultAuthentication = getDefaultAuthentication(req);
|
291
|
+
if (defaultAuthentication) {
|
292
|
+
res.locals.username = defaultAuthentication._id;
|
293
|
+
res.locals.aclId = defaultAuthentication.aclId;
|
294
|
+
}
|
295
|
+
}
|
296
296
|
next();
|
297
297
|
});
|
298
298
|
// allow basic auth to deploy plugins
|
@@ -577,21 +577,6 @@ async function start(mainFilename, options) {
|
|
577
577
|
});
|
578
578
|
return;
|
579
579
|
}
|
580
|
-
// env based anon user login
|
581
|
-
const defaultAuthentication = getDefaultAuthentication(req);
|
582
|
-
if (defaultAuthentication) {
|
583
|
-
const userToken = new usertoken_1.UserToken(defaultAuthentication._id, defaultAuthentication.aclId, Date.now());
|
584
|
-
res.send({
|
585
|
-
...createTokens(userToken),
|
586
|
-
expiration: usertoken_1.ONE_DAY_MILLISECONDS,
|
587
|
-
username: defaultAuthentication,
|
588
|
-
// TODO: do not return the token from a short term auth mechanism?
|
589
|
-
token: defaultAuthentication?.token,
|
590
|
-
...alternateAddresses,
|
591
|
-
hostname,
|
592
|
-
});
|
593
|
-
return;
|
594
|
-
}
|
595
580
|
// basic auth
|
596
581
|
if (req.protocol === 'https' && req.headers.authorization) {
|
597
582
|
const username = await new Promise(resolve => {
|
@@ -630,6 +615,21 @@ async function start(mainFilename, options) {
|
|
630
615
|
});
|
631
616
|
}
|
632
617
|
catch (e) {
|
618
|
+
// env based anon user login
|
619
|
+
const defaultAuthentication = getDefaultAuthentication(req);
|
620
|
+
if (defaultAuthentication) {
|
621
|
+
const userToken = new usertoken_1.UserToken(defaultAuthentication._id, defaultAuthentication.aclId, Date.now());
|
622
|
+
res.send({
|
623
|
+
...createTokens(userToken),
|
624
|
+
expiration: usertoken_1.ONE_DAY_MILLISECONDS,
|
625
|
+
username: defaultAuthentication,
|
626
|
+
// TODO: do not return the token from a short term auth mechanism?
|
627
|
+
token: defaultAuthentication?.token,
|
628
|
+
...alternateAddresses,
|
629
|
+
hostname,
|
630
|
+
});
|
631
|
+
return;
|
632
|
+
}
|
633
633
|
res.send({
|
634
634
|
error: e?.message || 'Unknown Error.',
|
635
635
|
hasLogin,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scrypted-server-main.js","sourceRoot":"","sources":["../src/scrypted-server-main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAqC;AACrC,kEAAyC;AACzC,oDAA4B;AAC5B,mCAA8B;AAC9B,sDAA2C;AAC3C,4CAAoB;AACpB,gDAAwB;AACxB,0DAAiC;AACjC,kDAA0B;AAC1B,yCAAoC;AACpC,8CAAsB;AACtB,4CAAoB;AACpB,gDAAwB;AACxB,sDAA8B;AAC9B,oDAA4B;AAC5B,2DAAwE;AACxE,iCAA8F;AAC9F,yCAA4D;AAC5D,oDAA4B;AAC5B,wD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,CAAC,uCAAuC,OAAO,IAAI,sCAAoB,GAAG,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,oBAAoB,MAAM,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,yDAAyD,CAAC,CAAC;IACvE,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,wCAAsB,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAA;IAC/D,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;IAC3C,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;IAC7C,OAAO,CAAC,GAAG,CAAC,oEAAoE,CAAC,CAAA;IACjF,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC,CAAC;IACtF,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAA;IAC5E,OAAO,CAAC,GAAG,CAAC,yDAAyD,CAAC,CAAC;IAEvE,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,kBAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@scrypted/server",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.94.1",
|
4
4
|
"description": "",
|
5
5
|
"dependencies": {
|
6
6
|
"@mapbox/node-pre-gyp": "^1.0.11",
|
7
|
-
"@scrypted/types": "^0.3.
|
7
|
+
"@scrypted/types": "^0.3.13",
|
8
8
|
"adm-zip": "^0.5.10",
|
9
9
|
"body-parser": "^1.20.2",
|
10
10
|
"cookie-parser": "^1.4.6",
|
11
11
|
"engine.io": "^6.5.4",
|
12
|
-
"express": "^4.18.
|
12
|
+
"express": "^4.18.3",
|
13
13
|
"ffmpeg-static": "^5.2.0",
|
14
14
|
"follow-redirects": "^1.15.5",
|
15
15
|
"http-auth": "^4.2.0",
|
16
|
-
"ip": "^
|
17
|
-
"level": "^8.0.
|
16
|
+
"ip": "^2.0.1",
|
17
|
+
"level": "^8.0.1",
|
18
18
|
"lodash": "^4.17.21",
|
19
19
|
"nan": "^2.18.0",
|
20
20
|
"node-dijkstra": "^2.5.0",
|
21
21
|
"node-forge": "^1.3.1",
|
22
22
|
"node-gyp": "^10.0.1",
|
23
23
|
"router": "^1.3.8",
|
24
|
-
"semver": "^7.
|
24
|
+
"semver": "^7.6.0",
|
25
25
|
"sharp": "^0.33.2",
|
26
26
|
"source-map-support": "^0.5.21",
|
27
27
|
"tar": "^6.2.0",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/adm-zip": "^0.5.5",
|
35
|
-
"@types/cookie-parser": "^1.4.
|
35
|
+
"@types/cookie-parser": "^1.4.7",
|
36
36
|
"@types/express": "^4.17.21",
|
37
37
|
"@types/follow-redirects": "^1.14.4",
|
38
38
|
"@types/http-auth": "^4.1.4",
|
@@ -40,9 +40,9 @@
|
|
40
40
|
"@types/lodash": "^4.14.202",
|
41
41
|
"@types/node-dijkstra": "^2.5.6",
|
42
42
|
"@types/node-forge": "^1.3.11",
|
43
|
-
"@types/semver": "^7.5.
|
43
|
+
"@types/semver": "^7.5.8",
|
44
44
|
"@types/source-map-support": "^0.5.10",
|
45
|
-
"@types/tar": "^6.1.
|
45
|
+
"@types/tar": "^6.1.11",
|
46
46
|
"@types/whatwg-mimetype": "^3.0.2",
|
47
47
|
"@types/ws": "^8.5.10"
|
48
48
|
},
|
@@ -28,7 +28,7 @@ interface MixinTableEntry {
|
|
28
28
|
export const RefreshSymbol = Symbol('ScryptedDeviceRefresh');
|
29
29
|
export const QueryInterfaceSymbol = Symbol("ScryptedPluginDeviceQueryInterface");
|
30
30
|
|
31
|
-
export class PluginDeviceProxyHandler implements PrimitiveProxyHandler<any
|
31
|
+
export class PluginDeviceProxyHandler implements PrimitiveProxyHandler<any> {
|
32
32
|
scrypted: ScryptedRuntime;
|
33
33
|
id: string;
|
34
34
|
mixinTable: MixinTable[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Device, DeviceManager, DeviceManifest, DeviceState, EndpointAccessControlAllowOrigin, EndpointManager, EventDetails, Logger, MediaManager, ScryptedInterface, ScryptedInterfaceProperty, ScryptedMimeTypes, ScryptedNativeId, ScryptedStatic, SystemDeviceState, SystemManager } from '@scrypted/types';
|
1
|
+
import { Device, DeviceManager, DeviceManifest, DeviceState, EndpointAccessControlAllowOrigin, EndpointManager, EventDetails, Logger, MediaManager, ScryptedInterface, ScryptedInterfaceProperty, ScryptedMimeTypes, ScryptedNativeId, ScryptedStatic, SystemDeviceState, SystemManager, WritableDeviceState } from '@scrypted/types';
|
2
2
|
import { RpcPeer, RPCResultError } from '../rpc';
|
3
3
|
import { AccessControls } from './acl';
|
4
4
|
import { BufferSerializer } from '../rpc-buffer-serializer';
|
@@ -200,8 +200,8 @@ export class DeviceManagerImpl implements DeviceManager {
|
|
200
200
|
mixinStorage = new Map<string, Map<string, StorageImpl>>();
|
201
201
|
|
202
202
|
constructor(public systemManager: SystemManagerImpl,
|
203
|
-
public getDeviceConsole
|
204
|
-
public getMixinConsole
|
203
|
+
public getDeviceConsole: (nativeId?: ScryptedNativeId) => Console,
|
204
|
+
public getMixinConsole: (mixinId: string, nativeId?: ScryptedNativeId) => Console) {
|
205
205
|
}
|
206
206
|
|
207
207
|
async requestRestart() {
|
@@ -218,7 +218,7 @@ export class DeviceManagerImpl implements DeviceManager {
|
|
218
218
|
return new Proxy(handler, handler);
|
219
219
|
}
|
220
220
|
|
221
|
-
createDeviceState(id: string, setState: (property: string, value: any) => Promise<void>):
|
221
|
+
createDeviceState(id: string, setState: (property: string, value: any) => Promise<void>): WritableDeviceState {
|
222
222
|
const handler = new DeviceStateProxyHandler(this, id, setState);
|
223
223
|
return new Proxy(handler, handler);
|
224
224
|
}
|
@@ -524,6 +524,9 @@ export function attachPluginRemote(peer: RpcPeer, options?: PluginRemoteAttachOp
|
|
524
524
|
pluginHostAPI: api,
|
525
525
|
pluginRemoteAPI: undefined,
|
526
526
|
serverVersion: hostInfo?.serverVersion,
|
527
|
+
connect: undefined,
|
528
|
+
fork: undefined,
|
529
|
+
connectRPCObject: undefined,
|
527
530
|
};
|
528
531
|
|
529
532
|
delete peer.params.getRemote;
|
package/src/plugin/system.ts
CHANGED
@@ -10,7 +10,7 @@ function newDeviceProxy(id: string, systemManager: SystemManagerImpl) {
|
|
10
10
|
return new Proxy(handler, handler);
|
11
11
|
}
|
12
12
|
|
13
|
-
class DeviceProxyHandler implements PrimitiveProxyHandler<any
|
13
|
+
class DeviceProxyHandler implements PrimitiveProxyHandler<any> {
|
14
14
|
customProperties: Map<string | number | symbol, any>;
|
15
15
|
device: Promise<ScryptedDevice>;
|
16
16
|
constructor(public id: string, public systemManager: SystemManagerImpl) {
|
@@ -220,14 +220,6 @@ async function start(mainFilename: string, options?: {
|
|
220
220
|
}
|
221
221
|
|
222
222
|
app.use(async (req, res, next) => {
|
223
|
-
const defaultAuthentication = getDefaultAuthentication(req);
|
224
|
-
if (defaultAuthentication) {
|
225
|
-
res.locals.username = defaultAuthentication._id;
|
226
|
-
res.locals.aclId = defaultAuthentication.aclId;
|
227
|
-
next();
|
228
|
-
return;
|
229
|
-
}
|
230
|
-
|
231
223
|
// the remote address may be ipv6 prefixed so use a fuzzy match.
|
232
224
|
// eg ::ffff:192.168.2.124
|
233
225
|
if (process.env.SCRYPTED_ADMIN_USERNAME
|
@@ -307,6 +299,15 @@ async function start(mainFilename: string, options?: {
|
|
307
299
|
else if (req.query['scryptedToken']) {
|
308
300
|
checkToken(req.query.scryptedToken.toString());
|
309
301
|
}
|
302
|
+
|
303
|
+
if (!res.locals.username) {
|
304
|
+
const defaultAuthentication = getDefaultAuthentication(req);
|
305
|
+
if (defaultAuthentication) {
|
306
|
+
res.locals.username = defaultAuthentication._id;
|
307
|
+
res.locals.aclId = defaultAuthentication.aclId;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
310
311
|
next();
|
311
312
|
});
|
312
313
|
|
@@ -637,22 +638,6 @@ async function start(mainFilename: string, options?: {
|
|
637
638
|
return;
|
638
639
|
}
|
639
640
|
|
640
|
-
// env based anon user login
|
641
|
-
const defaultAuthentication = getDefaultAuthentication(req);
|
642
|
-
if (defaultAuthentication) {
|
643
|
-
const userToken = new UserToken(defaultAuthentication._id, defaultAuthentication.aclId, Date.now());
|
644
|
-
res.send({
|
645
|
-
...createTokens(userToken),
|
646
|
-
expiration: ONE_DAY_MILLISECONDS,
|
647
|
-
username: defaultAuthentication,
|
648
|
-
// TODO: do not return the token from a short term auth mechanism?
|
649
|
-
token: defaultAuthentication?.token,
|
650
|
-
...alternateAddresses,
|
651
|
-
hostname,
|
652
|
-
});
|
653
|
-
return;
|
654
|
-
}
|
655
|
-
|
656
641
|
// basic auth
|
657
642
|
if (req.protocol === 'https' && req.headers.authorization) {
|
658
643
|
const username = await new Promise(resolve => {
|
@@ -697,6 +682,22 @@ async function start(mainFilename: string, options?: {
|
|
697
682
|
})
|
698
683
|
}
|
699
684
|
catch (e) {
|
685
|
+
// env based anon user login
|
686
|
+
const defaultAuthentication = getDefaultAuthentication(req);
|
687
|
+
if (defaultAuthentication) {
|
688
|
+
const userToken = new UserToken(defaultAuthentication._id, defaultAuthentication.aclId, Date.now());
|
689
|
+
res.send({
|
690
|
+
...createTokens(userToken),
|
691
|
+
expiration: ONE_DAY_MILLISECONDS,
|
692
|
+
username: defaultAuthentication,
|
693
|
+
// TODO: do not return the token from a short term auth mechanism?
|
694
|
+
token: defaultAuthentication?.token,
|
695
|
+
...alternateAddresses,
|
696
|
+
hostname,
|
697
|
+
});
|
698
|
+
return;
|
699
|
+
}
|
700
|
+
|
700
701
|
res.send({
|
701
702
|
error: e?.message || 'Unknown Error.',
|
702
703
|
hasLogin,
|