Skip to content

Commit

Permalink
Resolve ESLint warning regarding text encoding identifier case
Browse files Browse the repository at this point in the history
  • Loading branch information
domwebber committed Dec 5, 2024
1 parent 69251f4 commit 01ce620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webhook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class Webhook {
// See: https://developers.facebook.com/docs/messenger-platform/webhooks#validate-payloads
const getCalculatedSignature = (alg: string) => (appSecret: string) =>
createHmac(alg, appSecret)
.update(bodyString, "utf-8")
.update(bodyString, "utf8")
.digest("hex");

const checkSignature = (alg: string, signature: string) => {
Expand Down

0 comments on commit 01ce620

Please sign in to comment.