From 3d93824aef32128d1b2a0385818878863fc4c4e3 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:44:18 -0400 Subject: [PATCH] Did I really use the wrong algorithm? --- functions/api/me/items/[type]/[id].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/me/items/[type]/[id].ts b/functions/api/me/items/[type]/[id].ts index 40e8056..1eccda7 100644 --- a/functions/api/me/items/[type]/[id].ts +++ b/functions/api/me/items/[type]/[id].ts @@ -34,7 +34,7 @@ export async function onRequestGet(context: RequestContext) { Uint8Array.from(atob(context.env.URL_SIGNING_KEY), (c) => c.charCodeAt(0), ), - { hash: "SHA-256", name: "HMAC" }, + { hash: "SHA-1", name: "HMAC" }, false, ["sign"], );