@larksuiteoapi/node-sdk 1.61.0 → 1.61.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/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -86029,13 +86029,13 @@ function registerApp(options) {
|
|
|
86029
86029
|
qrCodeUrl.searchParams.set('tp', 'sdk');
|
|
86030
86030
|
onQRCodeReady({
|
|
86031
86031
|
url: qrCodeUrl.toString(),
|
|
86032
|
-
expireIn: (_a = beginRes.
|
|
86032
|
+
expireIn: (_a = beginRes.expires_in) !== null && _a !== void 0 ? _a : 600,
|
|
86033
86033
|
});
|
|
86034
86034
|
return startPolling({
|
|
86035
86035
|
baseUrl,
|
|
86036
86036
|
deviceCode: beginRes.device_code,
|
|
86037
86037
|
interval: ((_b = beginRes.interval) !== null && _b !== void 0 ? _b : 5) * 1000,
|
|
86038
|
-
expireIn: ((_c = beginRes.
|
|
86038
|
+
expireIn: ((_c = beginRes.expires_in) !== null && _c !== void 0 ? _c : 600) * 1000,
|
|
86039
86039
|
larkBaseUrl: `https://${(_d = options.larkDomain) !== null && _d !== void 0 ? _d : DEFAULT_LARK_DOMAIN}`,
|
|
86040
86040
|
signal,
|
|
86041
86041
|
onStatusChange,
|
package/lib/index.js
CHANGED
|
@@ -86044,13 +86044,13 @@ function registerApp(options) {
|
|
|
86044
86044
|
qrCodeUrl.searchParams.set('tp', 'sdk');
|
|
86045
86045
|
onQRCodeReady({
|
|
86046
86046
|
url: qrCodeUrl.toString(),
|
|
86047
|
-
expireIn: (_a = beginRes.
|
|
86047
|
+
expireIn: (_a = beginRes.expires_in) !== null && _a !== void 0 ? _a : 600,
|
|
86048
86048
|
});
|
|
86049
86049
|
return startPolling({
|
|
86050
86050
|
baseUrl,
|
|
86051
86051
|
deviceCode: beginRes.device_code,
|
|
86052
86052
|
interval: ((_b = beginRes.interval) !== null && _b !== void 0 ? _b : 5) * 1000,
|
|
86053
|
-
expireIn: ((_c = beginRes.
|
|
86053
|
+
expireIn: ((_c = beginRes.expires_in) !== null && _c !== void 0 ? _c : 600) * 1000,
|
|
86054
86054
|
larkBaseUrl: `https://${(_d = options.larkDomain) !== null && _d !== void 0 ? _d : DEFAULT_LARK_DOMAIN}`,
|
|
86055
86055
|
signal,
|
|
86056
86056
|
onStatusChange,
|