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) {