From f675814b34256a02f3b6827e468809672c14ab7d Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sun, 2 Feb 2025 17:41:06 -0600 Subject: [PATCH] I am wonfident this will work --- src/pages/api/auth.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/api/auth.ts b/src/pages/api/auth.ts index 9b86788..0cfd7c6 100644 --- a/src/pages/api/auth.ts +++ b/src/pages/api/auth.ts @@ -9,6 +9,9 @@ export const POST: APIRoute = async ({ request }) => { const { code } = await request.json(); const secretCode = process.env.SECRET_CODE || import.meta.env.SECRET_CODE; + console.log("Received code:", code); // For debugging + console.log("Secret code:", secretCode); // For debugging + if (!code || code !== secretCode) { return new Response( JSON.stringify({