Supbase query works, but API call returns empty result

Database & APIs

I have a table in supbase with the following RLS:

alter policy "Enable select for authenticated users only" on "public"."userCampaign_txt" to authenticated using (  ("ownerId" = auth.uid()));

Scenario 1: Works; When I call using "Supabase Query", I get the result.

Scenario 2: Does Not Work: I am using API call for the same table and getting empty result: I am passing auth_token as below:

Can someone help? I do not know what I am doing wrong while executing API call. I have also make this table RLS open for all and both calls were successful. So, I know it has something to do with RLS, but cannot figure it out.

I also see one difference in Request URL in both cases, but do not know if this is an issue or not: The Query has following:

while the API Call has:

I have reviewed a similar solution done by the following post, but my issue still remains: https://community.flutterflow.io/ask-the-community/post/api-call-with-supabase-rls-ZKAsOWQAKEwnKeI

What have you tried so far?

previous posts (resolution) several youtube videos, read through many posts, etc.

Did you check FlutterFlow's Documentation for this topic?
No
1
2 replies