(keys: Set<string>)
| 121 | } |
| 122 | |
| 123 | function buildWhatsAppIdempotencyKey(keys: Set<string>): string | null { |
| 124 | if (keys.size === 0) { |
| 125 | return null |
| 126 | } |
| 127 | |
| 128 | const sortedKeys = Array.from(keys).sort() |
| 129 | const digest = sha256Hex(sortedKeys.join('|')) |
| 130 | return `whatsapp:${sortedKeys.length}:${digest}` |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Handle WhatsApp verification requests |
no test coverage detected