Community Member
ย ยทย I'm here to help and seek help! :)

Supabase RLS policy UPDATE rule based on userid

Database & APIs

Hello everyone,

I'm working on setting up Row Level Security (RLS) in Supabase on the Users table and I'm encountering issues with the "UPDATE" functionality on my Users table. Specifically, I'm unable to update a user's profile row when I'm logged in on an account.

Some context:

When a user registers, they authenticate through Firebase. At the same time, a row with same information is inserted in Supabase included the same userid as the Firebase.

I need help to setup this rule. What am I doing wrong? Both is "text".

This is the rule I'm attempting to implement:

What have you tried so far?

I've searched through the community, seen some youtube videoes and asked chat GPT about the topic. Couldn't figure it out.

Did you check FlutterFlow's Documentation for this topic?
Yes
3