From 100499f69ee8edac95562de31e5f1cb661b9167d Mon Sep 17 00:00:00 2001 From: cnbhavesh Date: Thu, 25 Jul 2024 18:58:07 +0530 Subject: [PATCH] Update index.ts Commented auth --- supabase/functions/execute-code/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/supabase/functions/execute-code/index.ts b/supabase/functions/execute-code/index.ts index 5286c0f9..ec362bfc 100644 --- a/supabase/functions/execute-code/index.ts +++ b/supabase/functions/execute-code/index.ts @@ -32,12 +32,12 @@ const headers = { "content-type": "application/json" }; Deno.serve(async (req) => { const authHeader = req.headers.get("Authorization"); // Auth check - if (authHeader !== "Bearer " + Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")) { - return new Response(JSON.stringify({ error: "Invalid auth" }), { - status: 401, - headers, - }); - } + // if (authHeader !== "Bearer " + Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")) { + // return new Response(JSON.stringify({ error: "Invalid auth" }), { + // status: 401, + // headers, + // }); + // } // Check that the user hasn't surpassed the rate limit if (ratelimit) {