permission denied for rls-enabled table

I have a custom schema a which is exposed. It has a table called a (a.a) which has rls enabled using alter table a.a enable row level security; and allowing select operations using
CREATE POLICY "view a"
ON a.a
FOR SELECT USING (
  true
);
. Upon using ilike with supabase-js, I get permission denied for table a. Am I missing something here?
Was this page helpful?