Skip to content
Discussion options

You must be logged in to vote

I believe that something is wrong with you filter or maybe your RLS policies — double check if the current user was permission to check or if your filter is correctly

Everything worked fine from my side:

Example

my table schema:

create table items (
  id bigint generated by default as identity primary key,
  name text,
  description text
);

-- Turn on security
alter table "items" enable row level security;

-- Allow anonymous access
create policy "Allow anonymous access"
on items for select
to anon using (true);

alter publication supabase_realtime add table items;

JS code:

import { createClient } from "npm:@supabase/supabase-js";

const supabase = createClient(
  "http://127.0.0.1:54321",

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@kallebysantos
Comment options

Answer selected by Chetan-Akre
@Chetan-Akre
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants