MCPcopy Create free account
hub / github.com/antvis/AVA / pair

Function pair

src/cli/feishu.ts:10–20  ·  view source on GitHub ↗
(appId: unknown, appSecret: unknown, source: string)

Source from the content-addressed store, hash-verified

8const larkHost = /(^|\.)larksuite\.com$/;
9
10function pair(appId: unknown, appSecret: unknown, source: string) {
11 const id = typeof appId === 'string' ? appId : '';
12 const secret = typeof appSecret === 'string' ? appSecret : '';
13 if (id && secret) {
14 return { appId: id, appSecret: secret };
15 }
16 if (id || secret) {
17 throw new Error(`Feishu Bitable source ${source} requires both appId and appSecret`);
18 }
19 return undefined;
20}
21
22function ask(label: string, echo: boolean) {
23 process.stderr.write(label);

Callers 1

feishuCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected