production logging
This commit is contained in:
@@ -50,6 +50,9 @@ exports.shopdmPayWebhook = onRequest(
|
|||||||
|
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
console.error("Invalid webhook signature");
|
console.error("Invalid webhook signature");
|
||||||
|
console.error("Received signature:", signature);
|
||||||
|
console.error("Payload keys:", Object.keys(payload).sort().join(", "));
|
||||||
|
console.error("Secrets tried:", secrets.length);
|
||||||
res.status(401).send("Unauthorized");
|
res.status(401).send("Unauthorized");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user