Edge Function cannot insert into table with RLS even using Service Role Key
I am using the Service Role Key inside the Edge Function. Previously I added policies, but even then the insert didn’t work.
await supabase.from("pre_login").insert({
user_id,
ip_address,
user_agent,
token,
expires_in
});