Replies: 1 comment 2 replies
-
Hey we're going to be adding an example of doing authentication and authorization soon — #1455 Supporting RLS directly will be a bit tricky as Electric both queries data and gets updates from the replication log which doesn't use RLS. So we'd need to reproduce the logic there. In the meantime what we suggest is you use an API to do authentication and authorization for your shape requests. You can see an example of proxying here and we'll have a full example allowing/denying requests soon ish |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I was able to start a sync service and read data from it using
useShape
. But now from the client I can read all records from the database, or with a certain selection throughwhere
. I have not found in the documentation a description of how I can pass a supabase token or a supabase client to JWT, so that I can get RLS configured in supabase to work.Beta Was this translation helpful? Give feedback.
All reactions