Edge Function cannot insert into table with RLS even using Service Role Key

await supabase.from("pre_login").insert({
  user_id,
  ip_address,
  user_agent,
  token,
  expires_in
});


I am using the Service Role Key inside the Edge Function. Previously I added policies, but even then the insert didn’t work.
Was this page helpful?