HttpMiddlewareRequireValidHmacSignature
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Middleware to ensure the signed request is valid.
export default chain()
.then(add(requireValidHmacSignature({
// The secret value shared between you and the originating party
signingKey: "my_super_secret_key",
// The name of the header containing the signature to compare with our value
signatureHeaderName: "x-signature",
})))
.then(send())
Migrated from folder: http/middleware/HttpMiddlewareRequireValidHmacSignature