RLS Issues

Hi, I'm using the base auth templete, have a session, but I still get a can't insert RLS error.

I'm using svelte kit's server routes and getting the session based on the JWT passed in the header.

Here's my code: https://paste.hep.gg/horow.typescript
and the error:
Failed to insert waitlist entry for a4c2fc77-e652-4925-9791-a3b428820748: {"code":"42501","details":null,"hint":null,"message":"new row violates row-level security policy for table \"waitlist\""}


And the INSERT policy: https://img.sticks.ovh/JrpLXCIR9 (uses the base one provided by supabase)

Any help would be appricated.
Was this page helpful?