Skip to main content

webhooks_snippets_js_1

const {
context: { request },
} = yepcode;

if (
request.headers["yepcode-signature"] !==
"yp_test_y4Fb38t5RngUZiZSzFC4c4lZHFKHcC"
) {
return {
status: 400,
body: {
error: {
message:
"Invalid signature. Double check the 'YepCode-Signature' header",
},
},
};
}