Replies: 1 comment
-
The auth.uid is safe to be exposed as long as you have RLS involving auth.uid() for tables that a user should only manipulate their own data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use trigger and edge function to make the id equal to auth.uid in public.user every time a user enters. I also constructed the logic to manipulate the database using my master client (service role) based on this id. I think there may be problems if someone manipulates the database client-side object and changes it to someone else's Id. I wrote auth logic as in the documents in the suppbase using the sveltekit, but can there be a problem in my opinion?
Beta Was this translation helpful? Give feedback.
All reactions