fix
This commit is contained in:
@@ -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