From 4cbb4f86989dd27031d5126b204237794057a058 Mon Sep 17 00:00:00 2001 From: Rahul Mukherjee <17982080+rahulmukherjee85@users.noreply.github.com> Date: Wed, 5 Mar 2025 13:52:11 +0530 Subject: [PATCH] authorization key name correction request.headers.authentication is not present in the header , it should be request.headers.authorization --- webhook-pre.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook-pre.md b/webhook-pre.md index 3b7f9dd..b475ad6 100644 --- a/webhook-pre.md +++ b/webhook-pre.md @@ -151,7 +151,7 @@ For example, if you specify `purple unicorn` in the **Secret** field, you might ```javascript const jwt = require('jsonwebtoken'); ... -const token = request.headers.authentication; // grab the "Authentication" header +const token = request.headers.authorization; // grab the "Authorization" header try { const decoded = jwt.verify(token, 'purple unicorn'); } catch(err) {