MCPcopy Create free account
hub / github.com/MonoYan/open-medkit / buildSignFields

Function buildSignFields

backend/src/services/feishu.ts:43–47  ·  view source on GitHub ↗
(secret?: string)

Source from the content-addressed store, hash-verified

41}
42
43function buildSignFields(secret?: string): Record<string, unknown> {
44 if (!secret) return {};
45 const timestamp = Math.floor(Date.now() / 1000);
46 return { timestamp: String(timestamp), sign: genSign(secret, timestamp) };
47}
48
49export async function verifyWebhook(
50 webhookUrl: string,

Callers 2

verifyWebhookFunction · 0.85
sendWebhookFunction · 0.85

Calls 1

genSignFunction · 0.85

Tested by

no test coverage detected