© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
2 replies
jjcantu

Should I expose database types to the client?

I’m building a fintech application using Supabase (Postgres + TypeScript).

I don’t use Supabase directly in the client — it’s used behind my API server — but I’m wondering about best practices for sharing database types.

Is it considered safe or standard practice to bundle the generated Database types with the frontend app to get type safety (e.g., matching API response shapes), or should I only expose a limited subset of types since this could reveal parts of the schema?

Given this is a fintech product where security really matters, I’d love to hear how others handle this in production setups.
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

expose `pgmq_public` to client
SupabaseSSupabase / help-and-questions
14mo ago
supabase client expose error
SupabaseSSupabase / help-and-questions
13mo ago
Is it safe to expose UUIDs from auth.users to the client?
SupabaseSSupabase / help-and-questions
17mo ago
database types generation error
SupabaseSSupabase / help-and-questions
3mo ago