Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions supabase/functions/execute-code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down