Leaking the user's own auth 'User UID' is no secur...
# off-topic
d
Leaking the user's own auth 'User UID' is no security risk, right?
g
If you are using auth and have RLS with policies that use auth.uid() where needed, then no. It is visible in local storage.
d
Got it, so it's about restricting user's access to the DB. I was worried that the uid works similar to a session ID. Do you know if there is an article about best/secure practices when it comes to auth/RLS? I just clicked through the documentation and I can't find anything like that. Some policy templates use auth.uid() and others auth.email(). I was wondering if there's a reason behind that