0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed typo

This commit is contained in:
Naz 2022-05-10 12:00:41 +08:00
parent 98a8fa8b0d
commit 6cca515eae

View file

@ -139,7 +139,7 @@ const authenticateWithToken = async (req, res, next, {token, JWT_OPTIONS}) => {
// https://github.com/auth0/node-jsonwebtoken/issues/208#issuecomment-231861138 // https://github.com/auth0/node-jsonwebtoken/issues/208#issuecomment-231861138
const secret = Buffer.from(apiKey.get('secret'), 'hex'); const secret = Buffer.from(apiKey.get('secret'), 'hex');
// Using req.originalUril means we get the right url even if version-rewrites have happened // Using req.originalUrl means we get the right url even if version-rewrites have happened
const {version, api} = legacyApiPathMatch(req.originalUrl); const {version, api} = legacyApiPathMatch(req.originalUrl);
// ensure the token was meant for this api // ensure the token was meant for this api