Row level security and data insert with react native
Hi there,
I have a react native app and have auth setup, so that a session is created when a user logs in with their phone number.
I have row level security setup with the rule to allow users to do anything to their own lists.
But when testing if I try to create a list I'm getting this error:
This isn't making much sense to me because there is definitely a session for the user and I'm even passing in the user.id from the session into the user_id field in the table.
Any ideas what the issue could be?
I run into a similar row level security issue when trying to read data using
I have a react native app and have auth setup, so that a session is created when a user logs in with their phone number.
I have row level security setup with the rule to allow users to do anything to their own lists.
But when testing if I try to create a list I'm getting this error:
This isn't making much sense to me because there is definitely a session for the user and I'm even passing in the user.id from the session into the user_id field in the table.
Any ideas what the issue could be?
I run into a similar row level security issue when trying to read data using
select with a logged in user.