mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 06:47:28 +00:00
Accept spaced CoinPay signature parts
This commit is contained in:
parent
850cf5ea44
commit
c4f16012fe
2 changed files with 2 additions and 1 deletions
|
|
@ -408,6 +408,7 @@ describe("POST /api/webhooks/coinpay", () => {
|
|||
const signature = createHmac("sha256", secret).update(`${timestamp}.${payload}`).digest("hex");
|
||||
|
||||
expect(verifyCoinPayWebhook(payload, `t=${timestamp},v1=${signature}`, secret)).toBe(true);
|
||||
expect(verifyCoinPayWebhook(payload, `t=${timestamp}, v1=${signature}`, secret)).toBe(true);
|
||||
|
||||
const response = await coinpayWebhook(
|
||||
new NextRequest("http://localhost/api/webhooks/coinpay", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue