© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•17mo ago•
8 replies
nimroid

Is it safe to expose UUIDs from auth.users to the client?

RLSSolved🟡javascript
I know that supabase-js for instance works with JWTs which include the UUID of a user but that there are more factors when determining if a user is "actually that user". From my understanding, someone could do some snooping and get a user's UUID generated from auth.users, but they wouldn't be able to act as that user (send fake requests to the backend) with just that information. I have a public.users table which uses the UUID as an FK with some other fields. I want to call some basic RPCs from the client side (my website) which require the UUID of a user as a parameter. I could instead use the username as a parameter, but then it increases my RPC logic to do a corresponding UUID lookup.

I know it is probably better to not expose the UUIDs of other users to the client (again, someone could still find this info but it creates more work for them) but wanted to hear your guys' thoughts. Thanks!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Safe to change the way UUIDs are generated for the auth.users `id` column?
SupabaseSSupabase / help-and-questions
4y ago
How to expose auth.users to admins?
SupabaseSSupabase / help-and-questions
4y ago
Can auth.users use v7 UUIDs as ID?
SupabaseSSupabase / help-and-questions
2mo ago
Is it possible to alter the auth.users table to change tokens from null to ' '?
SupabaseSSupabase / help-and-questions
4mo ago