Closed kay-is closed 1 year ago
the headers are all lower cased.
try request.headers["upstash-signature"],
Or you can use the this shortcut:
import { verifySignature } from "@upstash/qstash/nextjs";
async function handler(req, res) {
console.log("If this is printed, the signature has already been verified");
// do stuff
res.status(200).end();
}
export default verifySignature(handler);
export const config = {
api: {
bodyParser: false,
},
};
Seeing that you have finished the blog post, I assume this issue is resolved, @kay-is ?
Yes, thanks!
I'm trying to verify a qStash request in a Next.js API route that runs on Vercel functions.
This is the code of the route that is called by qStash:
I get the following error: