fix
This commit is contained in:
1 parent
3f87a76ed5
commit
de0ee4626c
1 file changed
+1
-1
@@ -37,7 +37,7 @@ export async function POST(req) {
|
|||||||
try {
|
try {
|
||||||
evt = wh.verify(payload, headers);
|
evt = wh.verify(payload, headers);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('Invalid webhook signature');
|
console.error('Invalid webhook signature', err);
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{ message: 'Invalid webhook signature' },
|
{ message: 'Invalid webhook signature' },
|
||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
|
|||||||
Reference in new issue
Block a user