fix: verifyQstashHeader now returns false when SignatureError is thrown

This commit is contained in:
2024-09-02 13:19:50 -04:00
parent 9694c0ee0d
commit 690b5aa426
2 changed files with 19 additions and 12 deletions

View File

@@ -16,7 +16,6 @@ import { getUpcomingTitlesFromAnilist } from "./anilist";
const app = new Hono();
app.post("/titles", async (c) => {
console.log(c.req.path);
if (
!(await verifyQstashHeader(
env<Env, typeof c>(c, "workerd"),