Voice-call: fix Twilio signature ordering

This commit is contained in:
Ghost
2026-01-18 20:03:13 -08:00
parent cb7edb669f
commit b04b51d2c4

View File

@@ -25,7 +25,7 @@ export function validateTwilioSignature(
// Sort params alphabetically and append key+value
const sortedParams = Array.from(params.entries()).sort((a, b) =>
a[0].localeCompare(b[0]),
a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0,
);
for (const [key, value] of sortedParams) {