@lifeaitools/clauth 1.4.5 → 1.4.7
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/cli/commands/serve.js +2 -13
- package/package.json +1 -1
package/cli/commands/serve.js
CHANGED
|
@@ -893,18 +893,7 @@ const KEY_URLS = {
|
|
|
893
893
|
};
|
|
894
894
|
|
|
895
895
|
// Extra links shown below the primary KEY_URLS link
|
|
896
|
-
const EXTRA_LINKS = {
|
|
897
|
-
"gmail": [
|
|
898
|
-
{ label: "↗ Open Gmail", url: "https://mail.google.com" },
|
|
899
|
-
{ label: "↗ OAuth Playground (get refresh token)", url: "https://developers.google.com/oauthplayground/" },
|
|
900
|
-
{ label: "↗ Enable Gmail API", url: "https://console.cloud.google.com/apis/library/gmail.googleapis.com" },
|
|
901
|
-
],
|
|
902
|
-
"gcal": [
|
|
903
|
-
{ label: "↗ Open Google Calendar", url: "https://calendar.google.com" },
|
|
904
|
-
{ label: "↗ OAuth Playground (get refresh token)", url: "https://developers.google.com/oauthplayground/" },
|
|
905
|
-
{ label: "↗ Enable Calendar API", url: "https://console.cloud.google.com/apis/library/calendar-json.googleapis.com" },
|
|
906
|
-
],
|
|
907
|
-
};
|
|
896
|
+
const EXTRA_LINKS = {};
|
|
908
897
|
|
|
909
898
|
// ── OAuth import config ─────────────────────
|
|
910
899
|
// Services where Google downloads a JSON file. jsonFields = keys to extract
|
|
@@ -3514,7 +3503,7 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
|
|
|
3514
3503
|
const service = deleteMatch[1].toLowerCase();
|
|
3515
3504
|
try {
|
|
3516
3505
|
const { token, timestamp } = deriveToken(password, machineHash);
|
|
3517
|
-
const result = await api.removeService(password, machineHash, token, timestamp, service,
|
|
3506
|
+
const result = await api.removeService(password, machineHash, token, timestamp, service, service);
|
|
3518
3507
|
if (result.error) return strike(res, 502, result.error);
|
|
3519
3508
|
return ok(res, { ok: true, deleted: service });
|
|
3520
3509
|
} catch (err) {
|